UNPKG

@quasar/app-vite

Version:

Quasar Framework App CLI with Vite

10 lines (9 loc) 195 B
/** * Escape a string to then be supplied * to new RegExp() */ export function escapeRegexString (str) { return str .replace(/[|\\{}()[\]^$+*?.]/g, '\\$&') .replace(/-/g, '\\x2d') }