branch: elpa/fedi
commit fa95f4430bf980ff0fd4239d2457beb7cbc97e53
Author: marty hiatt <[email protected]>
Commit: marty hiatt <[email protected]>

    adj fedi-post-url-regex. FIX #32.
---
 fedi-post.el | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/fedi-post.el b/fedi-post.el
index fcd7f8a9979..4d416608671 100644
--- a/fedi-post.el
+++ b/fedi-post.el
@@ -142,11 +142,9 @@ for forming a URL.")
 (defvar fedi-post-url-regex
   ;; adapted from `ffap-url-regexp'
   (concat
-   
"\\(?1:\\(news\\(post\\)?:\\|mailto:\\|file:\\|\\(ftp\\|https?\\|telnet\\|gopher\\|www\\|wais\\)://\\)"
-                                        ; uri prefix
-   "[^ \n\t]*\\)" ; any old thing, that is, i.e. we allow invalid/unwise chars
-   "\\b"))
-                                        ; boundary
+   
"\\(?1:\\(news\\(post\\)?:\\|mailto:\\|file:\\|\\(ftp\\|https?\\|telnet\\|gopher\\|www\\|wais\\)://\\)"
 ;; uri prefix
+   "[^ \n\t,]*\\)" ;; any old thing, that is, i.e. we allow invalid/unwise 
chars
+   "\\(\\b\\|\\.\\)")) ;; boundary or terminating period
 
 (defvar fedi-post-commit-regex
   (rx (| (any ?\( "\n" "\t" " ") bol)

Reply via email to