wrangler-action/node_modules/escape-string-regexp
2023-08-07 15:11:15 -05:00
..
index.js Temp fix for deps issue 2023-08-07 15:11:15 -05:00
license Temp fix for deps issue 2023-08-07 15:11:15 -05:00
package.json Temp fix for deps issue 2023-08-07 15:11:15 -05:00
readme.md Temp fix for deps issue 2023-08-07 15:11:15 -05: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