goreleaser-action/node_modules/escape-string-regexp
CrazyMax bb450e4e69
Add tests
2019-09-22 07:17:07 +02:00
..
index.js Initial commit 2019-09-20 22:23:46 +02:00
license Initial commit 2019-09-20 22:23:46 +02:00
package.json Add tests 2019-09-22 07:17:07 +02:00
readme.md Initial commit 2019-09-20 22:23:46 +02: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