Sha256: a9fd76613c52aa62a036e7d85d6503601ac3aae1444f4765c738567e5f687f4f

Contents?: true

Size: 467 Bytes

Versions: 49

Compression:

Stored size: 467 Bytes

Contents

/**
Escape RegExp special characters.

You can also use this to escape a string that is inserted into the middle of a regex, for example, into a character class.

@example
```
import escapeStringRegexp = require('escape-string-regexp');

const escapedString = escapeStringRegexp('How much $ for a 🦄?');
//=> 'How much \\$ for a 🦄\\?'

new RegExp(escapedString);
```
*/
declare const escapeStringRegexp: (string: string) => string;

export = escapeStringRegexp;

Version data entries

49 entries across 49 versions & 3 rubygems

Version Path
immosquare-cleaner-0.1.26 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.25 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.24 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.23 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.22 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.21 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.20 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.19 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.18 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.17 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.16 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.14 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.13 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.12 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.11 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.10 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.9 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.8 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.7 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.6 node_modules/escape-string-regexp/index.d.ts