UNPKG

regexp.escape

Version:

A robust ES3-compatible polyfill for the `RegExp.escape` proposal - see https://github.com/tc39/proposal-regex-escaping

23 lines (19 loc) 338 B
{ "root": true, "extends": "@ljharb", "rules": { "id-length": "off", "new-cap": ["error", { "capIsNewExceptions": [ "StringToCodePoints", "UTF16EncodeCodePoint", "EncodeForRegExpEscape", "NumberToString", "StringIndexOf", "StringPad", "UnicodeEscape", "UTF16EncodeCodePoint" ], }], }, }