Skip to content

Commit 7f32f82

Browse files
author
wendy@lastlookeditorial.com
committed
Edited ch07.asciidoc with Atlas code editor
1 parent 1732173 commit 7f32f82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ch07.asciidoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,7 @@ We could wrap those base-16 values in `'\u{codePoint}'` and voilá: you'd get th
12701270

12711271
==== String.fromCodePoint
12721272

1273-
This ((("String#codePointAt", startref="scpa7")))((("String.fromCodePoint")))((("Unicode", "StringcodePointAtx", startref="u7scpa")))((("Unicode", "String.fromCodePoint")))method takes in a number and returns a code point. Note how I can use the `0x` prefix with the terse base-16 code points we got from `String#codePointAt` moments ago.
1273+
This ((("String#codePointAt", startref="scpa7")))((("String.fromCodePoint")))((("Unicode", "String#codePointAt", startref="u7scpa")))((("Unicode", "String.fromCodePoint")))method takes in a number and returns a code point. Note how I can use the `0x` prefix with the terse base-16 code points we got from `String#codePointAt` moments ago.
12741274

12751275
++++
12761276
<pre data-type="programlisting" data-code-language="javascript">String.fromCodePoint(0x1f40e)
@@ -1345,7 +1345,7 @@ The last Unicode-related method we'll be addressing is `.normalize`.
13451345

13461346
==== String#normalize
13471347

1348-
There are ((("Stringnormalizex")))((("Unicode", "Stringnormalizex")))different ways of representing strings that look identical to humans even though their code points differ. Consider the following example, where two seemingly identical strings aren't deemed equal by any JavaScript runtime.
1348+
There are ((("String#normalize")))((("Unicode", "String#normalize")))different ways of representing strings that look identical to humans even though their code points differ. Consider the following example, where two seemingly identical strings aren't deemed equal by any JavaScript runtime.
13491349

13501350
[source,javascript]
13511351
----
@@ -1572,7 +1572,7 @@ hasSameUserAndPassword('root:pF6GGlyPhoy1!9i') // <- false
15721572

15731573
The `\k<groupName>` reference can be used in tandem with numbered references, but the latter are better avoided when already using named references.
15741574

1575-
Lastly, named groups can be referenced from the replacement passed to `String#replace`. In ((("Stringreplacex")))the next code snippet we use `String#replace` and named groups to change an American date string to use Hungarian formatting.
1575+
Lastly, named groups can be referenced from the replacement passed to `String#replace`. In ((("String#replace")))the next code snippet we use `String#replace` and named groups to change an American date string to use Hungarian formatting.
15761576

15771577
[source,javascript]
15781578
----

0 commit comments

Comments
 (0)