From 28a02ce6c1e937ad829a844a007ed10d1e177aed Mon Sep 17 00:00:00 2001 From: Tim Vaughan Date: Tue, 6 Jul 2021 11:26:59 +0200 Subject: [PATCH] Improved URL regex. --- lurk.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lurk.el b/lurk.el index 9563237..fb1c258 100644 --- a/lurk.el +++ b/lurk.el @@ -509,8 +509,9 @@ portion of the source component of the message, as LURK doesn't use this.") (opt (group (: ":" (+ digit)))) (opt (group (: "/" (opt - (* (any alnum ",.-~/@|:%#=&_")) - (+ (any alnum "-~/@|:%#=&"))))))))) + (* (any alnum "-/.,#:%=&_")) + (any alnum "-/#:%=&_"))))))) + "Imperfect regex used to find URLs in plain text.") (defun lurk-click-url (button) (browse-url (button-get button 'url))) -- 2.20.1