Bachir Soussi Chiadmi cefd1c2ad0 updated sys and created publi 7 år sedan
..
index.js 0611418f7a added whole system from ola4doc 7 år sedan
license 0611418f7a added whole system from ola4doc 7 år sedan
package.json cefd1c2ad0 updated sys and created publi 7 år sedan
readme.md 0611418f7a added whole system from ola4doc 7 år sedan

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