]> git.eshelyaron.com Git - emacs.git/commit
Improve thing-at-point email detection
authorRobert Pluim <rpluim@gmail.com>
Wed, 15 Feb 2023 11:16:11 +0000 (12:16 +0100)
committerRobert Pluim <rpluim@gmail.com>
Fri, 10 Mar 2023 10:22:54 +0000 (11:22 +0100)
commit03cfede8f0aa952bde76fa595ca06770cc52e655
tree00b4d4bd2b27efe93cb49a65e8ace0fff2a262f0
parent8ee205d232574e12921b052c7e93b7e16d6f1187
Improve thing-at-point email detection

* lisp/thingatpt.el (thing-at-point-email-regexp): Allow numbers at
the start of the user portion, and disallow '.' at the start.  Also
disallow '.' at the start of the domain portion.
* test/lisp/thingatpt-tests.el (thing-at-point-test-data): Add various
email tests.

Bug#61519
lisp/thingatpt.el
test/lisp/thingatpt-tests.el