Skip to content

Commit

Permalink
fix(koishi): only capture quote with root argv, fix #1441
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Aug 13, 2024
1 parent bd69a04 commit 1f41c20
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/command/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,9 @@ export class Commander {
argv.options = command._aliases[name].options
if (command._arguments.length) break
}
if (argv.command?.config.captureQuote !== false && quote?.content) {
// https://github.com/koishijs/koishi/issues/1432
// https://github.com/koishijs/koishi/issues/1441
if (argv.root && argv.command?.config.captureQuote !== false && quote?.content) {
argv.tokens.push({
content: quote.content,
quoted: true,
Expand Down

0 comments on commit 1f41c20

Please sign in to comment.