branch: elpa/pcmpl-args commit 66276289e9fa6946fd70824d0be7a806a18fc9d5 Author: Valeriy Litkovskyy <vlr.ltk...@protonmail.com> Commit: Troy Hinckley <t.mac...@gmail.com>
Fixed useless regexp --- pcmpl-args.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcmpl-args.el b/pcmpl-args.el index 95b5681f35..385f64a071 100644 --- a/pcmpl-args.el +++ b/pcmpl-args.el @@ -500,7 +500,7 @@ The value returned can be passed to `pcmpl-args-pcomplete'." (setq opt-str (substring opt-str 0 (match-beginning 0)))) ;; Split into multiple options. (setq opt-str (replace-regexp-in-string - "\\([ ]*[, ]+\\)-" "\x0" opt-str nil nil 1)) + "\\([, ]+\\)-" "\x0" opt-str nil nil 1)) (dolist (s (split-string opt-str "\x0" t)) (push s option-strings))) (setq option-strings (nreverse option-strings))