caoge c760052ff9 机车状态修改 8 mesi fa
..
index.js c760052ff9 机车状态修改 8 mesi fa
license c760052ff9 机车状态修改 8 mesi fa
package.json c760052ff9 机车状态修改 8 mesi fa
readme.md c760052ff9 机车状态修改 8 mesi fa

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