Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wenlinlee committed Dec 7, 2023
1 parent 42d2d40 commit b9e0975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bcos-utilities/bcos-utilities/DataConvertUtility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ bool bcos::isHexString(string const& _string)

bool bcos::isHexStringV2(string const& _string)
{
if (_string.length() / 2 == 0)
if (_string.length() % 2 == 0)
{
std::regex pattern("0x[0-9a-fA-F]*");
return std::regex_match(_string, pattern);
Expand Down

0 comments on commit b9e0975

Please sign in to comment.