Skip to content

Commit

Permalink
fixup!
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Mar 25, 2024
1 parent 4258210 commit 5f5a3fd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec.emu
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,21 @@ contributors: Jordan Harband
1. Let _punctuators_ be the following String, which consists of every ASCII punctuator except U+005F (LOW LINE): *"(){}[]|,.?\*+-^$=<>\/#&!%:;@~'"`"*.
1. Let _toEscape_ be StringToCodePoints(_punctuators_).
1. If _toEscape_ contains _c_ or _c_ is matched by |WhiteSpace|, then
1. Append code point U+005C (REVERSE SOLIDUS) to _codePoints_.
1. Append the code point U+005C (REVERSE SOLIDUS) to _codePoints_.
1. Let _hex_ be Number::toString(𝔽(_c_), 16).
1. If the length of _hex_ is 1 or 2, then
1. Set _hex_ to StringPad(_hex_, 2, *"0"*, ~start~).
1. Append code point U+0078 (LATIN SMALL LETTER X) to _codePoints_.
1. Append the code point U+0078 (LATIN SMALL LETTER X) to _codePoints_.
1. Append the code points in StringToCodePoints(_hex_) to _codePoints_.
1. Else if the length of _hex_ is 3 or 4, then
1. Set _hex_ to StringPad(_hex_, 4, *"0"*, ~start~).
1. Append code point U+0075 (LATIN SMALL LETTER U) to _codePoints_.
1. Append the code point U+0075 (LATIN SMALL LETTER U) to _codePoints_.
1. Append the code points in StringToCodePoints(_hex_) to _codePoints_.
1. Else,
1. Append code point U+0075 (LATIN SMALL LETTER U) to _codePoints_.
1. Append code point U+007B (LEFT CURLY BRACKET) to _codePoints_.
1. Append the code point U+0075 (LATIN SMALL LETTER U) to _codePoints_.
1. Append the code point U+007B (LEFT CURLY BRACKET) to _codePoints_.
1. Append the code points in StringToCodePoints(_hex_) to _codePoints_.
1. Append code point U+007D (RIGHT CURLY BRACKET) to _codePoints_.
1. Append the code point U+007D (RIGHT CURLY BRACKET) to _codePoints_.
1. Else,
1. Append _c_ to _codePoints_.
1. Return _codePoints_.
Expand Down

0 comments on commit 5f5a3fd

Please sign in to comment.