Spaces:
Running
Running
Download utils/escapeRegex.js from 4send/messenger: direct link, hf CLI and curl.
- Browser
- Download file 108 Bytes
-
https://huggingface.co/spaces/4send/messenger/resolve/main/utils/escapeRegex.js
- Command line
-
hf download hf://spaces/4send/messenger/utils/escapeRegex.js
-
curl -L -o escapeRegex.js https://huggingface.co/spaces/4send/messenger/resolve/main/utils/escapeRegex.js
108 Bytes
| const escapeRegex = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); | |
| module.exports = { escapeRegex }; | |