Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse Hex #684

Merged
merged 3 commits into from
Oct 30, 2023
Merged

Parse Hex #684

merged 3 commits into from
Oct 30, 2023

Conversation

Jason2605
Copy link
Member

@Jason2605 Jason2605 commented Oct 23, 2023

Parse Hex

What's Changed:

Ability to parse hex codes

Type of Change:

  • Bug fix
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Housekeeping:

  • Tests have been updated to reflect the changes done within this PR (if applicable).
  • Documentation has been updated to reflect the changes done within this PR (if applicable).

Screenshots (If Applicable):

error(parser, "\\x escape code expects format \\xhh");
break;
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add an additional check here to make sure the given characters are in fact valid hex (0123456789abcdefABCDEF)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should happen below in the strtol check, but potentially an easier check is checking for the char being in that range

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh my bad, I just noticed that now. I'll defer to you. :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries! Thanks for double checking anyways

@Jason2605 Jason2605 merged commit bfefd41 into develop Oct 30, 2023
@Jason2605 Jason2605 deleted the feature/parse_hex branch October 30, 2023 17:59
This was referenced Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants