From c95db790abb5182897a73c0270adac4ffecc61b5 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 27 Mar 2024 14:18:36 -0700 Subject: [PATCH] [spec] address https://github.com/tc39/proposal-regex-escaping/issues/58#issuecomment-2023453535 --- spec.emu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.emu b/spec.emu index ef79948..cacc5a1 100644 --- a/spec.emu +++ b/spec.emu @@ -57,7 +57,7 @@ contributors: Jordan Harband 1. Let _codePoints_ be a new empty List. - 1. Let _punctuators_ be the following String, which consists of every ASCII punctuator except U+005F (LOW LINE): *"(){}[]|,.?\*+-^$=<>\/#&!%:;@~'"`"*. + 1. Let _punctuators_ be the string-concatenation of *"(){}[]|,.?*+-^$=<>/#&!%:;@~'`"*, the code unit 0x0022 (QUOTATION MARK), and the code unit 0x005C (REVERSE SOLIDUS). 1. Let _toEscape_ be StringToCodePoints(_punctuators_). 1. If _toEscape_ contains _c_ or _c_ is matched by |WhiteSpace|, then 1. Append the code point U+005C (REVERSE SOLIDUS) to _codePoints_.