* mm-view: minor improvement to url recognition regexp
This commit is contained in:
@ -71,8 +71,8 @@ marking if it still had that."
|
|||||||
(:subject (mm/view-header fieldname fieldval))
|
(:subject (mm/view-header fieldname fieldval))
|
||||||
(:path (mm/view-header fieldname fieldval))
|
(:path (mm/view-header fieldname fieldval))
|
||||||
(:maildir (mm/view-header fieldname fieldval))
|
(:maildir (mm/view-header fieldname fieldval))
|
||||||
(:flags (mm/view-header fieldname (format "%S" fieldval)))
|
(:flags (mm/view-header fieldname
|
||||||
|
(if fieldval (format "%S" fieldval) "")))
|
||||||
;; contact fields
|
;; contact fields
|
||||||
(:to (mm/view-contacts msg field))
|
(:to (mm/view-contacts msg field))
|
||||||
(:from (mm/view-contacts msg field))
|
(:from (mm/view-contacts msg field))
|
||||||
@ -373,7 +373,7 @@ removing '^M' etc."
|
|||||||
(add-text-properties p (point-max) '(face mm/view-footer-face))))
|
(add-text-properties p (point-max) '(face mm/view-footer-face))))
|
||||||
;; this is fairly simplistic...
|
;; this is fairly simplistic...
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(while (re-search-forward "\\(https?://[-a-zA-Z0-9?_.$%/=+&#@!~,:]*\\)\\>"
|
(while (re-search-forward "\\(https?://[-a-zA-Z0-9?_.$%/=+&#@!~,:;]*\\)\\>"
|
||||||
nil t)
|
nil t)
|
||||||
(let ((subst (propertize (match-string-no-properties 0)
|
(let ((subst (propertize (match-string-no-properties 0)
|
||||||
'face 'mm/view-link-face)))
|
'face 'mm/view-link-face)))
|
||||||
|
|||||||
Reference in New Issue
Block a user