The Lambda Lab
/
projects
/
lurk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
048ab64
)
Improved URL regex.
author
Tim Vaughan
<plugd@thelambdalab.xyz>
Tue, 6 Jul 2021 09:26:59 +0000
(11:26 +0200)
committer
Tim Vaughan
<plugd@thelambdalab.xyz>
Tue, 6 Jul 2021 09:26:59 +0000
(11:26 +0200)
lurk.el
patch
|
blob
|
history
diff --git
a/lurk.el
b/lurk.el
index
9563237
..
fb1c258
100644
(file)
--- 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)))