Skip to content

Commit

Permalink
NumberFormatTokenizer: Expect language info in hexadecimal format ins…
Browse files Browse the repository at this point in the history
…tead of decimal format
  • Loading branch information
adirfische committed May 15, 2023
1 parent ff9e9c9 commit 70c86c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/NumberFormatTokenizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ private function prepareDateTimeFormat(NumberFormatSection $section): void

// For currency/language info: Keep currency symbol, remove the rest.
if ($token->isInSquareBrackets() && strpos($token->getCode(), '$') === 0) {
preg_match('{\$([^-]*)-\d+}', $token->getCode(), $matches);
preg_match('{\$([^-]*)-[0-9A-F]+}', $token->getCode(), $matches);
$token
->setCode($matches[1])
->setIsQuoted(true)
Expand Down

0 comments on commit 70c86c6

Please sign in to comment.