From eddd78688ac7bcd2148aad4ea22bf00e65e199c0 Mon Sep 17 00:00:00 2001 From: neingeist Date: Sat, 11 Jun 2005 18:59:06 +0000 Subject: [PATCH] Refine cell phone regex --- smstool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smstool.py b/smstool.py index 5fc3994..c992239 100644 --- a/smstool.py +++ b/smstool.py @@ -26,8 +26,8 @@ class EvolutionCells: for e in db[k].split('\r\n'): if re.search("^FN:", e): name = re.sub("^FN:", "", e) - if re.search("^TEL;TYPE=CELL:", e): - cell = re.sub("^TEL;TYPE=CELL:", "", e) + if re.search("^\.?TEL;TYPE=CELL.*?:", e): + cell = re.sub("^\.?TEL;TYPE=CELL.*?:", "", e) if cell != "": contacts[name] = cell