diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-10-14 15:20:49 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-10-14 15:20:49 +0800 |
| commit | c5a5384e846f242e901e859fe600d695d8990a9a (patch) | |
| tree | 079d4ccf2ed93dc1f0cae74a6d3b4a42ac387ece /node_modules/escape-string-regexp/readme.md | |
| parent | d261b7aafee0e6e5c7b853cb8dfe609cc0a0ac9e (diff) | |
legacy browser support via plugins from postcss
Diffstat (limited to 'node_modules/escape-string-regexp/readme.md')
| -rw-r--r-- | node_modules/escape-string-regexp/readme.md | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/node_modules/escape-string-regexp/readme.md b/node_modules/escape-string-regexp/readme.md new file mode 100644 index 00000000..87ac82d5 --- /dev/null +++ b/node_modules/escape-string-regexp/readme.md @@ -0,0 +1,27 @@ +# escape-string-regexp [](https://travis-ci.org/sindresorhus/escape-string-regexp) + +> Escape RegExp special characters + + +## Install + +``` +$ npm install --save escape-string-regexp +``` + + +## Usage + +```js +const escapeStringRegexp = require('escape-string-regexp'); + +const escapedString = escapeStringRegexp('how much $ for a unicorn?'); +//=> 'how much \$ for a unicorn\?' + +new RegExp(escapedString); +``` + + +## License + +MIT © [Sindre Sorhus](http://sindresorhus.com) |
