]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix argument parser for rcirc-define-command with string input
authorPhilip Kaludercic <philipk@posteo.net>
Tue, 15 Jun 2021 21:12:02 +0000 (23:12 +0200)
committerPhilip Kaludercic <philipk@posteo.net>
Tue, 15 Jun 2021 21:12:02 +0000 (23:12 +0200)
* rcirc.el (rcirc-define-command): Require at least one space between
arguments

lisp/net/rcirc.el

index dfa80bb4089a923f4638f63bba688d96acbbb222..4d98d65d58aa28def8d32976b48eaaa8ff2abe70 100644 (file)
@@ -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 "?"))