We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 139af38 commit be0e90eCopy full SHA for be0e90e
src/Extension/Attributes/Util/AttributesHelper.php
@@ -23,7 +23,7 @@
23
*/
24
final class AttributesHelper
25
{
26
- private const SINGLE_ATTRIBUTE = '\s*([.]-?[_a-z]\S*|[#]\S+|' . RegexHelper::PARTIAL_ATTRIBUTENAME . RegexHelper::PARTIAL_ATTRIBUTEVALUESPEC . '?)\s*';
+ 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';
28
29
/**
0 commit comments