The Lambda Lab
/
projects
/
elpher.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fbf21f
)
Improved URL regexp.
author
Tim Vaughan
<tgvaughan@gmail.com>
Fri, 26 Apr 2019 16:01:10 +0000
(18:01 +0200)
committer
Tim Vaughan
<tgvaughan@gmail.com>
Fri, 26 Apr 2019 16:01:10 +0000
(18:01 +0200)
elopher.el
patch
|
blob
|
history
diff --git
a/elopher.el
b/elopher.el
index
81b1250
..
4617d08
100644
(file)
--- 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-z
A-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."