Fix email regexp.

This commit is contained in:
grossmj
2014-04-01 16:58:30 -06:00
parent 72906d246a
commit 08814058fd
2 changed files with 2 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ Dependencies:
- pip & setuptools must be installed, please see http://pip.readthedocs.org/en/latest/installing.html
- PyQt must be installed, to install on Debian-like Linux: sudo apt-get install python3-pyqt4
- ws4py, to install: sudo apt-get install python3-ws4py or pip3 install ws4py
- Dynamips version 0.2.11 or above (http://github.com/GNS3/dynamips)
$ python3 setup.py install
$ gns3

View File

@@ -32,7 +32,7 @@ class EarlyReleaseDialog(QtGui.QDialog, Ui_EarlyReleaseDialog):
def isEmail(self, email):
if re.match("[\.\w]{1,}[@]\w+[.]\w+", email):
if re.match("([\w\-\.]+@(\w[\w\-]+\.)+[\w\-]+)", email):
return True
else:
return False