mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +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')
|