Skip to content

Commit e4d01a8

Browse files
committed
Trying to get builds to finish again
1 parent 843a913 commit e4d01a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ch07.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ While that string consists of five code units, we know that the length should re
10981098
++++
10991099
<pre data-type="programlisting" data-code-language="javascript">'\ud83d\udc0e\ud83d\udc71\u2764'.length
11001100
// &lt;- 5
1101-
'<img src="images/1f40e.png" alt="horse" data-emoji-embed="running horse" /><img src="images/1f471.png" alt="man" data-emoji-embed="smiling idiot" /><img src="images/2764.png" alt="heart" data-emoji-embed="heart" />'.length
1101+
'<img src="images/1f40e.png" alt="horse" data-emoji-embed="running horse" /><img src="images/1f471.png" alt="man" data-emoji-embed="smiling idiot" /><img src="images/2764.png" alt="heart" data-emoji-embed="heart" />'.length</pre>
11021102
++++
11031103

11041104
Counting code points before ES6 was tricky, as the language didn't make an effort to help in the Unicode department. Take for instance `Object.keys`, as seen in the following code snippet. It returns five keys for our three-emoji string, because those three code points use five code units in total.

0 commit comments

Comments
 (0)