goreleaser-action/node_modules/escape-string-regexp
CrazyMax 806be4e14b
Update node_modules
2020-01-23 11:14:07 +01: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 Update node_modules 2020-01-23 11:14:07 +01: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