Improved URL regexp. v2.4.5
authorTim Vaughan <tgvaughan@fastmail.com>
Sun, 17 Nov 2019 23:31:52 +0000 (00:31 +0100)
committerTim Vaughan <tgvaughan@fastmail.com>
Sun, 17 Nov 2019 23:31:52 +0000 (00:31 +0100)
elpher.el

index 05f2823..1d955db 100644 (file)
--- a/elpher.el
+++ b/elpher.el
@@ -672,7 +672,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\-]\\|\[[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)