mirror of
https://github.com/corda/corda.git
synced 2025-01-23 04:48:09 +00:00
Accept uppercase letters as digits, per the spec for Character.digit
This commit is contained in:
parent
0bd29069f4
commit
f601897d9e
@ -96,6 +96,8 @@ public final class Character implements Comparable<Character> {
|
||||
digit = c - '0';
|
||||
} else if ((c >= 'a') && (c <= 'z')) {
|
||||
digit = c - 'a' + 10;
|
||||
} else if ((c >= 'A') && (c <= 'Z')) {
|
||||
digit = c - 'A' + 10;
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user