Skip to content

Commit e60bb31

Browse files
committed
only need final lookahead
1 parent 0d88a56 commit e60bb31

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
@@ -24,7 +24,7 @@
2424
final class AttributesHelper
2525
{
2626
private const SINGLE_ATTRIBUTE = '\s*([.]-?[_a-z][^\s}]*|[#][^\s}]+|' . RegexHelper::PARTIAL_ATTRIBUTENAME . RegexHelper::PARTIAL_ATTRIBUTEVALUESPEC . '?)\s*';
27-
private const ATTRIBUTE_LIST = '/^{(?!{):?(' . self::SINGLE_ATTRIBUTE . ')+}(?!})/i';
27+
private const ATTRIBUTE_LIST = '/^{:?(' . self::SINGLE_ATTRIBUTE . ')+}(?!})/i';
2828

2929
/**
3030
* @return array<string, mixed>

0 commit comments

Comments
 (0)