summaryrefslogtreecommitdiff
path: root/lisp/mail
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-12-04 16:53:39 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2019-12-04 16:54:24 -0800
commitab612302b4917fec5846922f3d8ffafa673c0d36 (patch)
tree378749424198f449cf9251c558733fa23a212df1 /lisp/mail
parent4472b053c3003a34803ec3ce5816caadec7b607a (diff)
downloademacs-ab612302b4917fec5846922f3d8ffafa673c0d36.tar.gz
Fix regex repetition of repetitions
Problems reported by Mattias EngdegÄrd in: https://lists.gnu.org/r/emacs-devel/2019-12/msg00066.html * lisp/gnus/gnus-util.el (gnus-emacs-version): * lisp/mail/rfc2368.el (rfc2368-mailto-regexp): * lisp/net/tramp-sh.el (tramp-sh-inotifywait-process-filter): * lisp/obsolete/terminal.el (te-parse-program-and-args): * lisp/org/org-table.el (org-table-wrap-region): * lisp/progmodes/verilog-mode.el (verilog-inject-inst): Avoid repetition-of-repetition in regexp.
Diffstat (limited to 'lisp/mail')
-rw-r--r--lisp/mail/rfc2368.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/mail/rfc2368.el b/lisp/mail/rfc2368.el
index 05f27e4d998..b658ffab587 100644
--- a/lisp/mail/rfc2368.el
+++ b/lisp/mail/rfc2368.el
@@ -61,7 +61,7 @@
;; only an approximation?
;; see rfc 1738
(defconst rfc2368-mailto-regexp
- "^\\(mailto:\\)\\([^?]+\\)*\\(\\?\\(.*\\)\\)*"
+ "^\\(mailto:\\)\\([^?]+\\)?\\(\\?\\(.*\\)\\)*"
"Regular expression to match and aid in parsing a mailto url.")
;; describes 'mailto:'