element-plus/packages/utils/strings.ts

10 lines
210 B
TypeScript
Raw Normal View History

export {
camelize,
capitalize,
hyphenate,
hyphenate as kebabCase, // alias
} from '@vue/shared'
export const escapeRegexpString = (value = '') =>
String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&')