Skip to content

Commit

Permalink
🌿 fix escape
Browse files Browse the repository at this point in the history
  • Loading branch information
Milly committed Sep 18, 2024
1 parent b2cd780 commit 55e6246
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/denops/testdata/dummy_dispatcher_plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ export const main: Entrypoint = (denops) => {
test: async (...args) => {
await delay(100);
await denops.cmd(
`execute 'doautocmd <nomodeline> User' fnameescape('DummyDispatcherPlugin:TestCalled:${
JSON.stringify(args)
}')`,
`doautocmd <nomodeline> User DummyDispatcherPlugin:TestCalled:${
JSON.stringify(args).replaceAll(/[ \\]/g, "\\$&")
}`,
);
return { result: "OK", args };
},
Expand Down

0 comments on commit 55e6246

Please sign in to comment.