-
I am having this selector - ".example:hover { } ". I just want to get the part before the pseudo-class, i. e. ".example". Can anyone help me please? |
Beta Was this translation helpful? Give feedback.
-
When you say "I just want to get the part", do you mean you want the selector as a string without pseudo classes, or are you looking to filter some of the AST nodes? |
Beta Was this translation helpful? Give feedback.
I have figured it out! Thanks for the concern. Here is the code snippet in case you are wondering. :)