Skip to content

Commit 9d04df7

Browse files
committed
Edited ch07.asciidoc with Atlas code editor
1 parent c4adef1 commit 9d04df7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

ch07.asciidoc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1638,15 +1638,14 @@ isNonGreekSymbol('π')
16381638

16391639
When we need to match every Unicode decimal number symbol, and not just `[0-9]` like `\d` does, we could use `\p{Decimal_Number}` as shown next.
16401640

1641-
[source,javascript]
1642-
----
1643-
function isDecimalNumber(input) {
1641+
++++
1642+
<pre data-type="programlisting" data-code-language="javascript">function isDecimalNumber(input) {
16441643
const rdigits = /^\p{Decimal_Number}+$/u
16451644
return rdigits.test(input)
16461645
}
16471646
isDecimalNumber('0x1d7cf0x1d7d00x1d7d10x1d7dc0x1d7dd0x1d7de0x1d7e90x1d7ea0x1d7eb0x1d7ec0x1d7ed0x1d7ee0x1d7ef0x1d7fa0x1d7fb0x1d7fc')
1648-
// <- true
1649-
----
1647+
// <- true</pre>
1648+
++++
16501649

16511650
Check out this exhaustive ((("Unicode", "supported Unicode properties and values")))overview of https://mjavascript.com/out/unicode-property-list[supported Unicode properties and values].
16521651

0 commit comments

Comments
 (0)