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:
48b6a6f
)
Improved url regex.
author
Tim Vaughan
<tgvaughan@gmail.com>
Sat, 2 Nov 2019 12:04:19 +0000
(13:04 +0100)
committer
Tim Vaughan
<tgvaughan@gmail.com>
Sat, 2 Nov 2019 12:04:19 +0000
(13:04 +0100)
elpher.el
patch
|
blob
|
history
diff --git
a/elpher.el
b/elpher.el
index
75b582b
..
ab5ea69
100644
(file)
--- a/
elpher.el
+++ b/
elpher.el
@@
-671,7
+671,7
@@
If ADDRESS is not supplied or nil the record is rendered as an
;; Text rendering
(defconst elpher-url-regex
;; Text rendering
(defconst elpher-url-regex
- "\\([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\-_~?/@|]\\)?\\)?"
+ "\\([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)
"Regexp used to locate and buttniofy URLs in text files loaded by elpher.")
(defun elpher-buttonify-urls (string)