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.51 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.50 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.49 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.48 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.47 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.46 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.45 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.44 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.43 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.42 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.41 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.40 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.39 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.38 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.32 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.31 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.30 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.29 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.28 node_modules/escape-string-regexp/index.d.ts
immosquare-cleaner-0.1.27 node_modules/escape-string-regexp/index.d.ts