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

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