Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Commit

Permalink
removing ALL whitesspaces on store fixe #111
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Hofstetter committed Jun 22, 2020
1 parent 703fb8f commit 8b4c1e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def check_phonenumber(phonenumber):
phonenumber = None
else:
x = phonenumbers.parse(phonenumber, None)
phonenumber = re.sub(r'\s+', '', phonenumber)
m = re.search(r'^\+\d+$', phonenumber)
if not m:
raise AttributeError(phonenumber, 'number has to start with a + and may only contain numbers')
Expand Down

0 comments on commit 8b4c1e2

Please sign in to comment.