Commit e17f4671 authored by Dan Pascu's avatar Dan Pascu

Fixed SIP address and E-mail address regular expressions

parent f40f5257
......@@ -264,11 +264,11 @@ class AddAccountDialog(base_class, ui_class):
self.display_name_editor.regexp = re.compile('^.*$')
self.name_editor.regexp = re.compile('^.+$')
self.username_editor.regexp = re.compile('^\w(?<=[^0_])[\w.-]{1,65}(?<=[^_.-])$', re.IGNORECASE) # in order to enable unicode characters add re.UNICODE to flags
self.sip_address_editor.regexp = re.compile('^[^@]+@.+$')
self.sip_address_editor.regexp = re.compile('^[^@\s]+@[^@\s]+$')
self.password_editor.regexp = re.compile('^.*$')
self.new_password_editor.regexp = re.compile('^.{8,}$')
self.verify_password_editor.regexp = re.compile('^$')
self.email_address_editor.regexp = re.compile('^[^@]+@.+$')
self.email_address_editor.regexp = re.compile('^[^@\s]+@[^@\s]+$')
def _get_display_name(self):
if self.panel_view.currentWidget() is self.add_account_panel:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment