Fixes an issue where CSS selectors with :not pseudo-elements such as :not(:active,:hover,.myClass) would result in a :not(,,.myClass) after the extraction of pseudo sub-selectors.
By adding a replacement function, the arguments are extracted and split by ,, then combined back.
It is my first PR to this project, so pretty please give me feedback so that I can improve it as much as possible 👍 Thanks in advance.
What does this PR do
:not
pseudo-elements such as:not(:active,:hover,.myClass)
would result in a:not(,,.myClass)
after the extraction of pseudo sub-selectors.By adding a replacement function, the arguments are extracted and split by
,
, then combined back.It is my first PR to this project, so pretty please give me feedback so that I can improve it as much as possible 👍 Thanks in advance.
Relates to #102