File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ public static Quantity<T> Wrap(T value)
7373
7474 public static Quantity < T > Parse ( string text )
7575 {
76- if ( ( char . IsDigit ( text [ 0 ] ) || text [ 0 ] is '-' ) )
76+ if ( ( char . IsAsciiDigit ( text [ 0 ] ) || text [ 0 ] is '-' ) )
7777 {
7878 var syntax = Parser . Parse ( text ) ;
7979
Original file line number Diff line number Diff line change 22using System . Collections . Generic ;
33using System . Runtime . CompilerServices ;
44using System . Text ;
5+ using System . Text . Encodings . Web ;
56
67namespace E . Parsing ;
78
@@ -147,7 +148,7 @@ public Token Next()
147148 }
148149
149150 case '.' : // ., .., ...
150- if ( char . IsDigit ( reader . Peek ( ) ) ) // .{0-9}
151+ if ( char . IsAsciiDigit ( reader . Peek ( ) ) ) // .{0-9}
151152 {
152153 return Read ( DecimalPoint ) ;
153154 }
@@ -231,7 +232,7 @@ public Token Next()
231232
232233 break ;
233234
234- case '\n ' or '\r ' or '\t ' or ' ' :
235+ case '\n ' or '\r ' or '\t ' or ' ' :
235236 ReadTrivia ( ) ;
236237 goto start ;
237238 }
@@ -369,7 +370,6 @@ private void ReadDigits(ref ValueStringBuilder sb)
369370
370371 sb . Append ( reader . Consume ( s_digitOrUnderscoreChars ) ) ;
371372 }
372-
373373
374374 public Token ReadSuperscript ( )
375375 {
You can’t perform that action at this time.
0 commit comments