Skip to content

Commit

Permalink
fix bug #118684
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsw committed Jun 5, 2007
1 parent 5447096 commit 3e87c2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion trunk/web/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,9 +527,11 @@ def numify(string):
>>> numify('800-555-1212')
'8005551212'
>>> numify('800.555.1212')
'8005551212'
"""
return ''.join([c for c in str(string).split('.')[0] if c.isdigit()])
return ''.join([c for c in str(string) if c.isdigit()])

def denumify(string, pattern):
"""
Expand Down

0 comments on commit 3e87c2d

Please sign in to comment.