Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
Parser.h: support lowercase hexdecimals
Browse files Browse the repository at this point in the history
  • Loading branch information
afg authored and hydai committed Sep 23, 2019
1 parent 986aa01 commit 0009255
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/eni/json/Parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ class Parser {
bool valid_code(const char *str){
for (int i = 0; i < 4; i++) {
if ('0'<=str[i] && str[i]<='9') continue;
else if ('a'<=str[i] && str[i]<='f') continue;
else if ('A'<=str[i] && str[i]<='F') continue;
else return false;
}
Expand Down

0 comments on commit 0009255

Please sign in to comment.