diff --git a/src/Value/Value.php b/src/Value/Value.php index 63577db9..66cb9fd4 100644 --- a/src/Value/Value.php +++ b/src/Value/Value.php @@ -176,15 +176,15 @@ private static function parseMicrosoftFilter(ParserState $oParserState) */ private static function parseUnicodeRangeValue(ParserState $oParserState) { - $iCodepointMaxLenth = 6; // Code points outside BMP can use up to six digits + $iCodepointMaxLength = 6; // Code points outside BMP can use up to six digits $sRange = ""; $oParserState->consume("U+"); do { if ($oParserState->comes('-')) { - $iCodepointMaxLenth = 13; // Max length is 2 six digit code points + the dash(-) between them + $iCodepointMaxLength = 13; // Max length is 2 six digit code points + the dash(-) between them } $sRange .= $oParserState->consume(1); - } while (strlen($sRange) < $iCodepointMaxLenth && preg_match("/[A-Fa-f0-9\?-]/", $oParserState->peek())); + } while (strlen($sRange) < $iCodepointMaxLength && preg_match("/[A-Fa-f0-9\?-]/", $oParserState->peek())); return "U+{$sRange}"; }