mirror of
https://git.mirrors.martin98.com/https://github.com/actions/setup-python
synced 2025-07-31 22:32:02 +08:00
escape-string-regexp 
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