branch: externals/ebdb
commit 091a744b43541a54dd3e991d1832339edcd642c5
Author: Eric Abrahamsen <[email protected]>
Commit: Eric Abrahamsen <[email protected]>
Make phone number snarfing regexp less permissive
* ebdb-snarf.el (ebdb-snarf-routines): This regexp was silly. It was
matching tiny little numbers, wreaking havoc on the snarfing
process. Also, those little tiny numbers should have raised an error
in ebdb-parse for phones.
---
ebdb-snarf.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ebdb-snarf.el b/ebdb-snarf.el
index 77c6984..3f3a7a8 100644
--- a/ebdb-snarf.el
+++ b/ebdb-snarf.el
@@ -50,7 +50,7 @@
(ebdb-field-url ,(concat "\\("
(regexp-opt ebdb-url-valid-schemes)
"//[^ \n\t]+\\)"))
- (ebdb-field-phone "\\(\\+?[[:digit:]]\\{1,3\\}[ )-.]?[[:digit:]
-.()]+\\)"))
+ (ebdb-field-phone "\\(\\+?[[:digit:]]\\{1,3\\}[ )-.]?[[:digit:]
-.()]\\{6,\\}\\)"))
"An alist of EBDB field classes and related regexps.