Skip to content

Commit 3d76b7f

Browse files
committed
allow valid CSS level 3 selectors for classes and ids in the attributes extension
1 parent a0c0e9e commit 3d76b7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Extension/Attributes/Util/AttributesHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
final class AttributesHelper
2525
{
26-
private const SINGLE_ATTRIBUTE = '\s*([.#][_a-z0-9-]+|' . RegexHelper::PARTIAL_ATTRIBUTENAME . RegexHelper::PARTIAL_ATTRIBUTEVALUESPEC . ')\s*';
26+
private const SINGLE_ATTRIBUTE = '\s*([.]-?[_a-z]\S*|[#]\S+|' . RegexHelper::PARTIAL_ATTRIBUTENAME . RegexHelper::PARTIAL_ATTRIBUTEVALUESPEC . ')\s*';
2727
private const ATTRIBUTE_LIST = '/^{:?(' . self::SINGLE_ATTRIBUTE . ')+}/i';
2828

2929
/**

0 commit comments

Comments
 (0)