WIP: Tiny note
This commit is contained in:
@@ -316,7 +316,7 @@ public final class ZJ {
|
||||
|
||||
// This is a nitpick but it turns out that Character.isDigit() accepts a bunch of possible
|
||||
// unicode digits as well as ASCII '0' through '9'. That's normally good, but not for
|
||||
// parsing JSON!
|
||||
// parsing JSON! (Shoutout to P.H. -- "only ever permit ASCII" wins this one time.)
|
||||
private static boolean isDigit(char c) {
|
||||
return c >= '0' && c <= '9';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user