yanchengPowerSupply/node_modules/escape-string-regexp
mazhehui 33e57c6f11 分布式光伏大屏页面 2023-07-18 08:47:30 +08:00
..
index.js 分布式光伏大屏页面 2023-07-18 08:47:30 +08:00
license 分布式光伏大屏页面 2023-07-18 08:47:30 +08:00
package.json 分布式光伏大屏页面 2023-07-18 08:47:30 +08:00
readme.md 分布式光伏大屏页面 2023-07-18 08:47:30 +08: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