You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note, `console.error($A)` will not generate `console.error('hello world')` in JavaScript API unlike the CLI. This is because using the host language to generate the replacement string is more flexible.
286
286
287
287
:::warning
288
-
Metavariable will not be replaced in the `replace` method. You need to create a string using `get_match(var_name)` by using JavaScript.
288
+
Metavariable will not be replaced in the `replace` method. You need to create a string using `getMatch(var_name)` by using JavaScript.
289
289
:::
290
290
291
291
See also [ast-grep#1172](https://github.com/ast-grep/ast-grep/issues/1172)
0 commit comments