José Quiñones Flores 4564da0130 Added Laravel project and removed sensitive data | 4 anos atrás | |
---|---|---|
.. | ||
index.js | 4 anos atrás | |
license | 4 anos atrás | |
package.json | 4 anos atrás | |
readme.md | 4 anos atrás |
Escape RegExp special characters
$ npm install --save escape-string-regexp
const escapeStringRegexp = require('escape-string-regexp');
const escapedString = escapeStringRegexp('how much $ for a unicorn?');
//=> 'how much \$ for a unicorn\?'
new RegExp(escapedString);
MIT © Sindre Sorhus