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/).
5555
5656### Fixed
5757
58+ - Allow comma in selectors (e.g. ` :not(html, body) ` ) (#1293 )
5859- Set line number when ` RuleSet::addRule() ` called with only column number set
5960 (#1265 )
6061- 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
5959 const SELECTOR_VALIDATION_RX = '/
6060 ^(
6161 (?:
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"]
6565 )*
6666 )$
6767 /ux ' ;
You can’t perform that action at this time.
0 commit comments