From 82186e0784e0baed9f6b6f8d84da34a5cd1d5963 Mon Sep 17 00:00:00 2001 From: Tim Vaughan Date: Fri, 26 Apr 2019 18:01:10 +0200 Subject: [PATCH] Improved URL regexp. --- elopher.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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." -- 2.20.1