Fix typo in escapeRegExp (#3448)

This commit is contained in:
Younes Fkihi
2017-10-25 21:57:20 +02:00
committed by John-David Dalton
parent e8c87cfc45
commit 102d9e34d7

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