Skip to content

Commit d7dd628

Browse files
committed
Fix checking DisplayString hex digits
1 parent 86f5fea commit d7dd628

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ private static function parseDisplayString(string &$string): DisplayString
299299
$hex = substr($string, 0, 2);
300300
$string = substr($string, 2);
301301

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

0 commit comments

Comments
 (0)