emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ebdb 6176da5 1/3: Simplify regexp in ebdb-dwim-mail


From: Eric Abrahamsen
Subject: [elpa] externals/ebdb 6176da5 1/3: Simplify regexp in ebdb-dwim-mail
Date: Sun, 10 Mar 2019 12:14:25 -0400 (EDT)

branch: externals/ebdb
commit 6176da533b6923c005d5464ac2ea874771232c85
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>

    Simplify regexp in ebdb-dwim-mail
    
    * ebdb.el (ebdb-dwim-mail): Use the [:punct:] construct.
---
 ebdb.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ebdb.el b/ebdb.el
index 64e4779..1408b4a 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -4335,7 +4335,7 @@ to use."
          ;; well (!,%, and $) just for common sense.
          ;; `define-mail-alias' uses regexp "[^- !#$%&'*+/0-9=?A-Za-z^_`{|}~]".
 
-         (format (if (string-match "[][[:cntrl:]\177()<>@,;:.!$%[:nonascii:]]" 
name)
+         (format (if (string-match "[][[:cntrl:]\177[:punct:][:nonascii:]]" 
name)
                      "\"%s\" <%s>"
                    "%s <%s>")
                  name mail))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]