Files
labeler/node_modules/escape-string-regexp
PJ Quirk c5c9bd0f54 Bump actions/github to 2.2.0 to support GHES (#72)
* Bumping actions/github to 2.2.0

* Husky commit correct node modules
2020-05-15 09:52:23 -04:00
..

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