File tree Expand file tree Collapse file tree 3 files changed +24
-1
lines changed
src/Extension/Attributes/Util
tests/functional/Extension/Attributes/data Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 2323 */
2424final 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 /**
Original file line number Diff line number Diff line change 1+ < p class ="some-class(value) "> Some text</ p >
2+ < p class ="some-class(value) "> Some text</ p >
3+ < p class ="-hello "> Some text</ p >
4+ < p class ="smile-😎 some-class "> Some text</ p >
5+ < p id ="smile-😎 "> Some text</ p >
6+ < p id ="smile-😎 "> Some text</ p >
Original file line number Diff line number Diff line change 1+ {class="some-class(value)"}
2+ Some text
3+
4+ {.some-class(value)}
5+ Some text
6+
7+ {.-hello}
8+ Some text
9+
10+ {.smile-😎 .some-class}
11+ Some text
12+
13+ {id="smile-😎"}
14+ Some text
15+
16+ {#smile-😎}
17+ Some text
You can’t perform that action at this time.
0 commit comments