Closed zloirock closed 2 months ago
The first step of EncodeForRegExpEscape:
EncodeForRegExpEscape
1. If c is matched by SyntaxCharacter or c is U+002F (SOLIDUS), then a. Return the string-concatenation of 0x005C (REVERSE SOLIDUS) and UTF16EncodeCodePoint(c).
SyntaxCharacter is where most of the "normal" symbols live.
Oh, thanks, I missed or here -)
or
The first step of
EncodeForRegExpEscape
:SyntaxCharacter is where most of the "normal" symbols live.