Skip to content

Commit 44ab978

Browse files
committed
[spec] remove dfn
See tc39#58 (comment)
1 parent 588218d commit 44ab978

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

spec.emu

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,12 @@ contributors: Jordan Harband
4343
<h1>RegExp.escape ( _S_ )</h1>
4444
<p>This method takes a string and returns a similar string in which each character that is potentially special in a regular expression |Pattern| has been replaced by an escape sequence representing that character.</p>
4545
<p>It performs the following steps when called:</p>
46-
<p>
47-
The phrase "<dfn id="the ASCII punctuators that need escaping">the ASCII punctuators that need escaping</dfn>"
48-
denotes the following String, which consists of every ASCII punctuator except U+005F (LOW LINE):
49-
*"(){}[]|,.?\*+-^$=<>\/#&!%:;@~'"`"*.
50-
</p>
5146

5247
<emu-alg>
5348
1. Let _str_ be ? ToString(_S_).
5449
1. Let _cpList_ be StringToCodePoints(_str_).
55-
1. Let _toEscape_ be StringToCodePoints(the ASCII punctuators that need escaping).
50+
1. Let _punctuators_ be the following String, which consists of every ASCII punctuator except U+005F (LOW LINE): *"(){}[]|,.?\*+-^$=<>\/#&!%:;@~'"`"*.
51+
1. Let _toEscape_ be StringToCodePoints(_punctuators_).
5652
1. Let _escapedList_ be a new empty List.
5753
1. For each code point _c_ in _cpList_, do
5854
1. If _escapedList_ is empty and _c_ is matched by |DecimalDigit|, then

0 commit comments

Comments
 (0)