how to remove all console.log(...) in js #471
-
➜ sg -p 'console.log' -r '' -l js
Error: Cannot parse query as a valid pattern
Help: The pattern either fails to parse or contains error. Please refer to pattern syntax guide.
See also: https://ast-grep.github.io/guide/pattern-syntax.html
× Caused by
╰▻ No AST root is detected. Please check the pattern source ``.
|
Beta Was this translation helpful? Give feedback.
Answered by
HerringtonDarkholme
Jun 24, 2023
Replies: 1 comment 3 replies
-
This is fixed in the recent version. Try Can you try upgrading ast-grep to latest version? |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
HerringtonDarkholme
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is fixed in the recent version. Try
sg --version
Can you try upgrading ast-grep to latest version?