Repositorio del curso CCOM4030 el semestre B91 del proyecto kilometro0
luis d198970c71 added browser platform 5 years ago
..
index.js added browser platform 5 years ago
license added browser platform 5 years ago
package.json added browser platform 5 years ago
readme.md added browser platform 5 years ago

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