export function escapeRegex(str) { return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') }