e 330ae2e0dd 名称修改 hace 1 año
..
index.js 330ae2e0dd 名称修改 hace 1 año
license 330ae2e0dd 名称修改 hace 1 año
package.json 330ae2e0dd 名称修改 hace 1 año
readme.md 330ae2e0dd 名称修改 hace 1 año

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