(string: string)
| 18 | }; |
| 19 | |
| 20 | export const escapeStrForRegex = (string: string): string => |
| 21 | string.replaceAll(/[$()*+.?[\\\]^{|}]/g, '\\$&'); |
| 22 | |
| 23 | export const replacePathSepForRegex = (string: string): string => { |
| 24 | if (sep === '\\') { |
no outgoing calls