Skip to content

Commit

Permalink
fixed flags
Browse files Browse the repository at this point in the history
  • Loading branch information
0xpaulio committed Nov 27, 2024
1 parent 6b3e9aa commit 8c4a199
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions src/utils/StringUtils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,15 @@ library StringUtils {
}
}

// Checks if the character at index is a Tag Indicator (used in special flag sequences)
if (
b == 0xF3 && index + 2 < strBytes.length &&
strBytes[index + 1] == 0xA0 &&
strBytes[index + 2] >= 0x80 && strBytes[index + 2] <= 0x9F
) {
return true;
}

return false;
}

Expand Down

0 comments on commit 8c4a199

Please sign in to comment.