From: Tim Vaughan Date: Fri, 26 Apr 2019 16:01:10 +0000 (+0200) Subject: Improved URL regexp. X-Git-Tag: v1.0.0~38 X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=82186e0784e0baed9f6b6f8d84da34a5cd1d5963;p=elpher.git Improved URL regexp. --- diff --git a/elopher.el b/elopher.el index 81b1250..4617d08 100644 --- a/elopher.el +++ b/elopher.el @@ -306,7 +306,7 @@ The result is stored as a string in the variable elopher-selector-string." ;; Text retrieval -(defvar elopher-url-regex "\\(https?\\|gopher\\)://\\([a-z.\-]+\\)\\(?3::[0-9]+\\)?\\(?4:/[^ \r\n\t(),]*\\)") +(defvar elopher-url-regex "\\(https?\\|gopher\\)://\\([a-zA-Z0-9.\-]+\\)\\(?3::[0-9]+\\)?\\(?4:/[^ \r\n\t(),]*\\)") (defun elopher-buttonify-urls (string) "Turn substrings which look like urls in STRING into clickable buttons."