Skip to content

Commit 1c3db47

Browse files
authored
typo: getMatch (ast-grep#613)
1 parent 679145c commit 1c3db47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/guide/api-usage/js-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ const newSource = node.commitEdits([edit])
285285
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.
286286

287287
:::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.
289289
:::
290290

291291
See also [ast-grep#1172](https://github.com/ast-grep/ast-grep/issues/1172)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy