webhook-action/node_modules/escape-string-regexp
Joel Male e4e62ab7e8 Add node_modules until bundler is added 2020-08-26 09:57:08 +10:00
..
index.js Add node_modules until bundler is added 2020-08-26 09:57:08 +10:00
license Add node_modules until bundler is added 2020-08-26 09:57:08 +10:00
package.json Add node_modules until bundler is added 2020-08-26 09:57:08 +10:00
readme.md Add node_modules until bundler is added 2020-08-26 09:57:08 +10: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