VirtualBox

Ignore:
Timestamp:
Oct 16, 2007 11:53:28 AM (17 years ago)
Author:
vboxsync
Message:

FE/Qt: Better correspondence to RFC2821, 2822 regarding E-mail text.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxRegistrationDlg.ui.h

    r5322 r5326  
    217217    /* Setup validations and maximum text-edit text length */
    218218    QRegExp nameExp ("[a-zA-Z0-9\\(\\)_\\-\\.\\s]+");
    219     QRegExp emailExp ("[a-zA-Z][a-zA-Z0-9_\\-\\.!#$%\\*/?|^{}`~&'\\+=]*[a-zA-Z0-9]@[a-zA-Z][a-zA-Z0-9_\\-\\.]*[a-zA-Z]");
     219    /* E-mail address is validated according to RFC2821, RFC2822,
     220     * see http://en.wikipedia.org/wiki/E-mail_address. Note that
     221     * we intentionally not currently support the "bla bla"@domain
     222     * form as it is not recommended in RFC. */
     223    QRegExp emailExp ("(([a-zA-Z0-9_\\-\\.!#$%\\*/?|^{}`~&'\\+=]*"
     224                        "[a-zA-Z0-9_\\-!#$%\\*/?|^{}`~&'\\+=])|"
     225                      "(\"([\\x0001-\\x0008,\\x000B,\\x000C,\\x000E-\\x0019,\\x007F,"
     226                            "\\x0021,\\x0023-\\x005B,\\x005D-\\x007E,"
     227                            "\\x0009,\\x0020]|"
     228                          "(\\\\[\\x0001-\\x0009,\\x000B,\\x000C,"
     229                                "\\x000E-\\x007F]))*\"))"
     230                      "@"
     231                      "[a-zA-Z0-9\\-]+(\\.[a-zA-Z0-9\\-]+)*");
    220232    mNameEdit->setValidator (new QRegExpValidator (nameExp, this));
    221233    mEmailEdit->setValidator (new QRegExpValidator (emailExp, this));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette