From 7e5360f32203ad7536dafd000938abd621bd0a2e Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Tue, 15 Jun 2021 23:12:02 +0200 Subject: [PATCH] Fix argument parser for rcirc-define-command with string input * rcirc.el (rcirc-define-command): Require at least one space between arguments --- lisp/net/rcirc.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index dfa80bb4089..4d98d65d58a 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el @@ -2403,8 +2403,8 @@ that, an interactive form can specified." (insert "\\`") (when arguments (dotimes (_ (1- (length arguments))) - (insert "\\(?:\\(.+?\\)[[:space:]]*")) - (insert "\\(.*\\)") + (insert "\\(?:\\(.+?\\)")) + (insert "\\(?:[[:space:]]+\\(.*\\)\\)") (dotimes (i (1- (length arguments))) (when (< i optional) (insert "?")) -- 2.39.2