Skip to content

Will it be possible to get the text for my current rule in validator? #1680

Answered by msujew
durianwaffle asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @durianwaffle,

You can use the node.$cstNode?.text property to access the original text of any AST node.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@durianwaffle
Comment options

Answer selected by durianwaffle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants