Revert "Fix typo in escapeRegExp (#3448)"

This reverts commit 102d9e34d7.
This commit is contained in:
Michał Lipiński
2017-11-08 22:40:28 +01:00
parent b36f21cbaf
commit 76c2e0accb

View File

@@ -6,7 +6,7 @@ const reRegExpChar = /[\\^$.*+?()[\]{}|]/g
const reHasRegExpChar = RegExp(reRegExpChar.source)
/**
* Escapes the `RegExp` special characters "^", "$", "\\", ".", "*", "+",
* Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
* "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
*
* @since 3.0.0