Skip to content

Commit

Permalink
fix[json5]: unicode::isHexDigit match range
Browse files Browse the repository at this point in the history
  • Loading branch information
ChingCdesu committed May 15, 2024
1 parent bf04d25 commit 59563a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/parser5/parser5.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ inline bool parser5<string_t>::unicode::isDigit(u8char ch)
template <typename string_t>
inline bool parser5<string_t>::unicode::isHexDigit(u8char ch)
{
return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <= '9');
return (ch >= 'a' && ch <= 'f') || (ch >= 'A' && ch <= 'F') || (ch >= '0' && ch <= '9');
}

template <typename string_t>
Expand Down

0 comments on commit 59563a6

Please sign in to comment.