Upsilon-VsCode/Client/node_modules/escape-string-regexp
Deukhoofd 95cff6f702
Initial
2019-02-17 18:07:28 +01:00
..
index.js Initial 2019-02-17 18:07:28 +01:00
license Initial 2019-02-17 18:07:28 +01:00
package.json Initial 2019-02-17 18:07:28 +01:00
readme.md Initial 2019-02-17 18:07:28 +01:00

readme.md

escape-string-regexp Build Status

Escape RegExp special characters

Install

$ npm install --save escape-string-regexp

Usage

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