Skip to content

Commit

Permalink
Fix checking DisplayString hex digits
Browse files Browse the repository at this point in the history
  • Loading branch information
gapple committed Feb 13, 2024
1 parent 86f5fea commit d7dd628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ private static function parseDisplayString(string &$string): DisplayString
$hex = substr($string, 0, 2);
$string = substr($string, 2);

if (!preg_match('/^[0-9a-z]{2}$/', $hex)) {
if (!preg_match('/^[0-9a-f]{2}$/', $hex)) {
throw new ParseException('Invalid hex values in display string');
}

Expand Down

0 comments on commit d7dd628

Please sign in to comment.