File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
55
55
56
56
### Fixed
57
57
58
+ - Allow comma in selectors (e.g. ` :not(html, body) ` ) (#1293 )
58
59
- Set line number when ` RuleSet::addRule() ` called with only column number set
59
60
(#1265 )
60
61
- Ensure first rule added with ` RuleSet::addRule() ` has valid position (#1262 )
Original file line number Diff line number Diff line change @@ -59,9 +59,9 @@ class Selector
59
59
const SELECTOR_VALIDATION_RX = '/
60
60
^(
61
61
(?:
62
- [a-zA-Z0-9\x{00A0}-\x{FFFF}_^$|*=" \'~\[\ ]()\-\s\ .:#+>]* # any sequence of valid unescaped characters
63
- (?: \\\\.)? # a single escaped character
64
- (?:([ \'"]).*?(?<! \\\\)\2)? # a quoted text like [id="example"]
62
+ [a-zA-Z0-9 \\ x{00A0}- \\ x{FFFF}_^$|*=" \'~ \\ [ \\ ]() \\ - \\ s \\ .:#+>, ]* # any sequence of valid unescaped characters
63
+ (?: \\\\.)? # a single escaped character
64
+ (?:([ \'"]).*?(?<! \\\\) \\ 2)? # a quoted text like [id="example"]
65
65
)*
66
66
)$
67
67
/ux ' ;
You can’t perform that action at this time.
0 commit comments