]> git.eshelyaron.com Git - emacs.git/commitdiff
Add slashes to 'thing-at-point-email-regexp'
authorPhilip Kaludercic <philipk@posteo.net>
Sun, 3 Dec 2023 12:49:07 +0000 (13:49 +0100)
committerPhilip Kaludercic <philipk@posteo.net>
Sun, 17 Dec 2023 12:07:30 +0000 (13:07 +0100)
* lisp/thingatpt.el (thing-at-point-email-regexp): Allow for
a (thing-at-point 'email) query to match addresses with slashes, as
used by Sourcehut.  (Bug#67600)

lisp/thingatpt.el

index 88efbf73bebd2e13ac1c0efd78f40e071e1afff4..80dc5ee60b72a93cbd3e1b56882967c784cc90c0 100644 (file)
@@ -652,7 +652,7 @@ back from point."
 
 ;;   Email addresses
 (defvar thing-at-point-email-regexp
-  "<?[-+_~a-zA-Z0-9][-+_.~:a-zA-Z0-9]*@[-a-zA-Z0-9]+[-.a-zA-Z0-9]*>?"
+  "<?[-+_~a-zA-Z0-9/][-+_.~:a-zA-Z0-9/]*@[-a-zA-Z0-9]+[-.a-zA-Z0-9]*>?"
   "A regular expression probably matching an email address.
 This does not match the real name portion, only the address, optionally
 with angle brackets.")