We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29c1d84 commit 37f0badCopy full SHA for 37f0bad
lib/Sabberworm/CSS/Parser.php
@@ -508,11 +508,14 @@ private function parseLineNameValue() {
508
}
509
510
private function parseUnicodeRangeValue() {
511
+ $iCodepointMaxLenth = 6; // Code points outside BMP can use up to six digits
512
$sRange = "";
513
+ $this->consume("U+");
514
do {
515
+ if ($this->comes('-')) $iCodepointMaxLenth = 13; // Max length is 2 six digit code points + the dash(-) between them
516
$sRange .= $this->consume(1);
- } while (!$this->comes(',') && !$this->comes(';') && !$this->comes('}'));
- return $sRange;
517
+ } while (strlen($sRange) < $iCodepointMaxLenth && preg_match("/[A-Fa-f0-9\?-]/", $this->peek()));
518
+ return "U+{$sRange}";
519
520
521
private function parseColorValue() {
0 commit comments