mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-27 03:01:14 +08:00
13 lines
309 B
TypeScript
13 lines
309 B
TypeScript
export {
|
|
camelize,
|
|
capitalize,
|
|
hyphenate,
|
|
hyphenate as kebabCase, // alias
|
|
} from '@vue/shared'
|
|
|
|
/**
|
|
* fork from {@link https://github.com/sindresorhus/escape-string-regexp}
|
|
*/
|
|
export const escapeStringRegexp = (string = '') =>
|
|
string.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&').replace(/-/g, '\\x2d')
|