branch: externals/ebdb
commit 4034f7a0e71e1868249c8180443a3f488fc90f5e
Author: Eric Abrahamsen <[email protected]>
Commit: Eric Abrahamsen <[email protected]>
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<[]+@[^]:[: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.