Skip to content

Commit e392622

Browse files
committed
Fix a typo in a variable name
Fixes #313
1 parent 7de0f36 commit e392622

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Value/Value.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,15 +176,15 @@ private static function parseMicrosoftFilter(ParserState $oParserState)
176176
*/
177177
private static function parseUnicodeRangeValue(ParserState $oParserState)
178178
{
179-
$iCodepointMaxLenth = 6; // Code points outside BMP can use up to six digits
179+
$iCodepointMaxLength = 6; // Code points outside BMP can use up to six digits
180180
$sRange = "";
181181
$oParserState->consume("U+");
182182
do {
183183
if ($oParserState->comes('-')) {
184-
$iCodepointMaxLenth = 13; // Max length is 2 six digit code points + the dash(-) between them
184+
$iCodepointMaxLength = 13; // Max length is 2 six digit code points + the dash(-) between them
185185
}
186186
$sRange .= $oParserState->consume(1);
187-
} while (strlen($sRange) < $iCodepointMaxLenth && preg_match("/[A-Fa-f0-9\?-]/", $oParserState->peek()));
187+
} while (strlen($sRange) < $iCodepointMaxLength && preg_match("/[A-Fa-f0-9\?-]/", $oParserState->peek()));
188188
return "U+{$sRange}";
189189
}
190190

0 commit comments

Comments
 (0)