71601b1
1
2
3
4
const escapeRegex = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); module.exports = { escapeRegex };