Spaces:
Configuration error
Configuration error
Download node_modules/escape-string-regexp/index.d.ts from W404NET/Telegram-Chat-Bot: direct link, hf CLI and curl.
- Browser
- Download file 467 Bytes
-
https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/escape-string-regexp/index.d.ts
- Command line
-
hf download hf://spaces/W404NET/Telegram-Chat-Bot/node_modules/escape-string-regexp/index.d.ts
-
curl -L -o index.d.ts https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/escape-string-regexp/index.d.ts
467 Bytes
| /** | |
| Escape RegExp special characters. | |
| You can also use this to escape a string that is inserted into the middle of a regex, for example, into a character class. | |
| @example | |
| ``` | |
| import escapeStringRegexp = require('escape-string-regexp'); | |
| const escapedString = escapeStringRegexp('How much $ for a 🦄?'); | |
| //=> 'How much \\$ for a 🦄\\?' | |
| new RegExp(escapedString); | |
| ``` | |
| */ | |
| declare const escapeStringRegexp: (string: string) => string; | |
| export = escapeStringRegexp; | |