diff --git a/src/msg-handlers/img-gen-handler.ts b/src/msg-handlers/img-gen-handler.ts index 548337c..b88e1f6 100644 --- a/src/msg-handlers/img-gen-handler.ts +++ b/src/msg-handlers/img-gen-handler.ts @@ -55,7 +55,7 @@ export class ImgGenHandler extends BaseHandler { return } - const [[_, command, rest]] = newMessage.matchAll(/^(\w+)\s*(.*)$/gs) + const [[_, command, rest]] = newMessage.matchAll(/^(\S+)\s*(.*)$/gs) if (command in this.#subCommands) { this.#subCommands[command]?.(rest.trim(), message, bot)