// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#escaping export const escape = (text: string): string => text.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');