Revision e1218f0f
b/src/gr/grnet/pithos/web/client/AddUserDialog.java | ||
---|---|---|
180 | 180 |
String name = userName.getText().trim(); |
181 | 181 |
if (name.length() == 0) |
182 | 182 |
return; |
183 |
RegExp emailValidator = RegExp.compile("^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,4}$", "i");
|
|
183 |
RegExp emailValidator = RegExp.compile("^[A-Z0-9._%+-]+@[A-Z0-9.-]+[.][A-Z]{2,4}$", "i");
|
|
184 | 184 |
if (!emailValidator.test(name)) { |
185 | 185 |
app.displayWarning("Username must be a valid email address"); |
186 | 186 |
return; |
b/src/gr/grnet/pithos/web/client/PermissionsAddDialog.java | ||
---|---|---|
141 | 141 |
String selected = null; |
142 | 142 |
if (userAdd) { |
143 | 143 |
selected = userBox.getText().trim(); |
144 |
RegExp emailValidator = RegExp.compile("^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,4}$", "i");
|
|
144 |
RegExp emailValidator = RegExp.compile("^[A-Z0-9._%+-]+@[A-Z0-9.-]+[.][A-Z]{2,4}$", "i");
|
|
145 | 145 |
if (!emailValidator.test(selected)) { |
146 | 146 |
app.displayWarning("Username must be a valid email address"); |
147 | 147 |
return; |
Also available in: Unified diff