Skip to content

Commit a588cce

Browse files
committed
Remove redundant regexp for bold numbers and add a unit tests for the mathvariant numbers
1 parent 402a3bd commit a588cce

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

main.jisonlex

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"\\\\" return "ROWSEP"
5555

5656
/* Numbers */
57-
[0-9]+(?:"."[0-9]+)?|[\u0660-\u0669]+(?:"\u066B"[\u0660-\u0669]+)?|(?:\uD835[\uDFCE-\uDFD7])+|(?:\uD835[\uDFCE-\uDFD7])+|(?:\uD835[\uDFD8-\uDFE1])+|(?:\uD835[\uDFE2-\uDFEB])+|(?:\uD835[\uDFEC-\uDFF5])+|(?:\uD835[\uDFF6-\uDFFF])+ return "NUM";
57+
[0-9]+(?:"."[0-9]+)?|[\u0660-\u0669]+(?:"\u066B"[\u0660-\u0669]+)?|(?:\uD835[\uDFCE-\uDFD7])+|(?:\uD835[\uDFD8-\uDFE1])+|(?:\uD835[\uDFE2-\uDFEB])+|(?:\uD835[\uDFEC-\uDFF5])+|(?:\uD835[\uDFF6-\uDFFF])+ return "NUM";
5858

5959
/* itex2MML identifier */
6060
<MATH1>[a-zA-Z]+ { return "A"; }

unit-tests.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)