Is there an option to truncate the ast generated? #276
Answered
by
fabianlawrence
fabianlawrence
asked this question in
Q&A
-
|
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.
Answered by
fabianlawrence
Aug 12, 2024
Replies: 1 comment 3 replies
-
|
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.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have figured it out! Thanks for the concern. Here is the code snippet in case you are wondering. :)