79278ec
1
2
3
4
export const escapeRegExp = (string: string) => { return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); };