]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix mail-extr regexp typo with ".".
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 19 Apr 2019 15:23:15 +0000 (08:23 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 19 Apr 2019 15:23:52 +0000 (08:23 -0700)
Problem reported by Mattias EngdegĂ„rd in:
https://lists.gnu.org/r/emacs-devel/2019-04/msg00543.html
* lisp/mail/mail-extr.el (mail-extr-telephone-extension-pattern):
Escape the trailing optional period after an abbreviation.

lisp/mail/mail-extr.el

index a0b9688650734b594ee08b2a7affb752fb73ba77..c1e90c3dcb89e850bfbbee52540c054cf86465bf 100644 (file)
@@ -383,7 +383,7 @@ by translating things like \"foo!bar!baz@host\" into \"baz@bar.UUCP\"."
 ;; Matches telephone extensions.
 (defconst mail-extr-telephone-extension-pattern
   (purecopy
-   "\\(\\([Ee]xt\\|[Tt]ph\\|[Tt]el\\|[Xx]\\).?\\)? *\\+?[0-9][- 0-9]+"))
+   "\\(\\([Ee]xt\\|[Tt]ph\\|[Tt]el\\|[Xx]\\)\\.?\\)? *\\+?[0-9][- 0-9]+"))
 
 ;; Matches ham radio call signs.
 ;; Help from: Mat Maessen N2NJZ <maessm@rpi.edu>, Mark Feit