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:
81598c9
)
Improved URL regexp.
author
Tim Vaughan
<tgvaughan@gmail.com>
Fri, 13 Sep 2019 20:50:43 +0000
(22:50 +0200)
committer
Tim Vaughan
<tgvaughan@gmail.com>
Fri, 13 Sep 2019 20:50:43 +0000
(22:50 +0200)
elpher.el
patch
|
blob
|
history
diff --git
a/elpher.el
b/elpher.el
index
a144c88
..
d2d67f2
100644
(file)
--- a/
elpher.el
+++ b/
elpher.el
@@
-644,7
+644,7
@@
If ADDRESS is not supplied or nil the record is rendered as an
;; Text rendering
(defconst elpher-url-regex
- "\\([a-zA-Z]+\\)://\\([a-zA-Z0-9.\-]
+\\|\[[a-zA-Z0-9:]+\]\\)\\(?3::[0-9]+\\)?\\(?4:/[^<> \r\n\t(),]*
\\)?"
+ "\\([a-zA-Z]+\\)://\\([a-zA-Z0-9.\-]
*[a-zA-Z0-9\-]\\|\[[a-zA-Z0-9:]+\]\\)\\(:[0-9]+\\)?\\(/\\([0-9a-zA-Z\-_~?/@|:.]*[0-9a-zA-Z\-_~?/@|]\\)?
\\)?"
"Regexp used to locate and buttniofy URLs in text files loaded by elpher.")
(defun elpher-buttonify-urls (string)