Skip to content

Commit 92abffa

Browse files
committed
Apply improvement suggestions by Sabberworm
1 parent 98c4b3a commit 92abffa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Sabberworm/CSS/Parser.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,10 +485,12 @@ private function parseNumericValue($bForColor = false) {
485485

486486
private function parseLineNameValue() {
487487
$this->consume('[');
488+
$this->consumeWhiteSpace();
488489
$sName = '';
489490
while(!$this->comes(']')) {
490-
$sName .= $this->consume(1);
491+
$sName .= $this->parseCharacter(true);
491492
}
493+
$this->consumeWhiteSpace();
492494
$this->consume(']');
493495
return new LineName($sName, $this->iLineNo);
494496
}

0 commit comments

Comments
 (0)