Skip to content

Commit 9f4575f

Browse files
hugopeekneilime
authored andcommitted
Allow numeric characters in property names
1 parent 9a04d83 commit 9f4575f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CssLint/Linter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ protected function lintPropertyNameChar(string $sChar): ?bool
402402
return true;
403403
}
404404

405-
if (!preg_match('/[-a-zA-Z]+/', $sChar)) {
405+
if (!preg_match('/[-a-zA-Z0-9]+/', $sChar)) {
406406
$this->addError('Unexpected property name token "' . $sChar . '"');
407407
}
408408
return true;

0 commit comments

Comments
 (0)