XuelesszzZ 94af2b8e7b 6-30-5 преди 1 година
..
index.js 94af2b8e7b 6-30-5 преди 1 година
license 94af2b8e7b 6-30-5 преди 1 година
package.json 94af2b8e7b 6-30-5 преди 1 година
readme.md 94af2b8e7b 6-30-5 преди 1 година

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