projecte_ionic/node_modules/escape-string-regexp
janmaroto b12369cb47 Conexio amb la api 2022-02-09 18:30:03 +01:00
..
index.js Conexio amb la api 2022-02-09 18:30:03 +01:00
license Conexio amb la api 2022-02-09 18:30:03 +01:00
package.json Conexio amb la api 2022-02-09 18:30:03 +01:00
readme.md Conexio amb la api 2022-02-09 18:30:03 +01: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