-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Byte): update isHex validator (#543)
* fix(Byte): replace validators with explicit type The base64 and hex validators are not guaranteeed to work. There are some false positive cases, so instead add a type header to the string, so a user can specify what the encoding of the string is. * fix(Byte): update hex validator There were cases where the hex regex validator would return true for a value that was acutally base64 encoded. Added tests for this case and updated the validator.
- Loading branch information
Showing
2 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters