(chr: string)
| 38 | const regexChars = '/\\.?*()^${}|[]+'; |
| 39 | |
| 40 | export const isRegexSpecialChar = (chr: string) => regexChars.includes(chr); |
| 41 | |
| 42 | export function escapeRegexSpecialChars(str: string, except?: string): string { |
| 43 | const useRegexChars = regexChars |