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

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

[elpa] externals/ebdb 4034f7a 331/350: Add phone field snarfing to the l


From: Eric Abrahamsen
Subject: [elpa] externals/ebdb 4034f7a 331/350: Add phone field snarfing to the list of snarf routines
Date: Mon, 14 Aug 2017 11:47:05 -0400 (EDT)

branch: externals/ebdb
commit 4034f7a0e71e1868249c8180443a3f488fc90f5e
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>

    Add phone field snarfing to the list of snarf routines
    
    * ebdb-snarf.el (ebdb-snarf-routines): This regexp will likely need
      tuning.
    
    Actually, it's becoming obvious that these regexps need to be kept
    somewhere else.
---
 ebdb-snarf.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ebdb-snarf.el b/ebdb-snarf.el
index 2ef98fb..3691533 100644
--- a/ebdb-snarf.el
+++ b/ebdb-snarf.el
@@ -49,7 +49,8 @@
   `((ebdb-field-mail 
"[[:blank:]([<\"]*\\([^[:space:]\":\n<address@hidden:[:space:])>\"\n]+\\)")
     (ebdb-field-url ,(concat "\\("
                             (regexp-opt ebdb-url-valid-schemes)
-                            "//[^ \n\t]+\\)")))
+                            "//[^ \n\t]+\\)"))
+    (ebdb-field-phone "\\(\\+?[[:digit:]]\\{1,3\\}[ )-.]?[[:digit:] 
-.()]+\\)"))
 
   "An alist of EBDB field classes and related regexps.
 



reply via email to

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