mirror of
https://github.com/GNS3/gns3-gui.git
synced 2026-05-17 00:46:01 +03:00
Fix email regexp.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user