From: Barış Metin Date: Mon, 14 Dec 2009 10:19:56 +0000 (+0000) Subject: copy the fixed email regex from PLCAPI. X-Git-Tag: MyPLC-4.3-33~5 X-Git-Url: http://git.onelab.eu/?p=myplc.git;a=commitdiff_plain;h=d84fc476281b7a8265047afe93a5c97994cb32cf copy the fixed email regex from PLCAPI. --- diff --git a/plc_config.py b/plc_config.py index a13a11a..fde6ad4 100644 --- a/plc_config.py +++ b/plc_config.py @@ -841,7 +841,7 @@ DO NOT EDIT. This file was automatically generated at except: return False validators = { - 'email' : lambda val: re.match('[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-_]+\.[a-zA-Z]+', val), + 'email' : lambda val: re.match('\A[a-zA-Z0-9._%+\-]+@[a-zA-Z0-9._\-]+\.[a-zA-Z]+\Z', val), 'ip': ip_validator }