From e392622d18d9a084619f47a7fd33571450304e27 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Tue, 6 Jul 2021 00:11:47 +0200 Subject: [PATCH] Fix a typo in a variable name Fixes #313 --- src/Value/Value.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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}"; }