MultiLoader-Template/node_modules/escape-string-regexp
3944Realms 8a825e0c9b build: 可使用的构建模板
修改了脚本,使其可以推给Maven仓库\
2026-03-09 14:44:02 +08:00
..
index.js build: 可使用的构建模板 2026-03-09 14:44:02 +08:00
license build: 可使用的构建模板 2026-03-09 14:44:02 +08:00
package.json build: 可使用的构建模板 2026-03-09 14:44:02 +08:00
readme.md build: 可使用的构建模板 2026-03-09 14:44:02 +08: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