]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
change twitter username to allow uppercase letters and underscores
authorEvan Prodromou <evan@controlyourself.ca>
Tue, 23 Sep 2008 06:03:14 +0000 (02:03 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Tue, 23 Sep 2008 06:03:14 +0000 (02:03 -0400)
darcs-hash:20080923060314-5ed1f-2ec4894251b99a2f9e9763ecc41659533bfab2eb.gz

actions/twittersettings.php

index 4ec1a579958bff8ece72460fb8ec3550aa61ca59..f656b9b6b4898b3ff9ebda9223eff87803e6b752 100644 (file)
@@ -112,9 +112,9 @@ class TwittersettingsAction extends SettingsAction {
                $friendsync = $this->boolean('friendsync');
 
                if (!Validate::string($twitter_username, array('min_length' => 1,
-                                                                                          'max_length' => 64,
-                                                                                          'format' => VALIDATE_NUM . VALIDATE_ALPHA_LOWER))) {
-                       $this->show_form(_('Username must have only lowercase letters and numbers and no spaces.'));
+                                                                                                          'max_length' => 64,
+                                                                                                          'format' => VALIDATE_NUM . VALIDATE_ALPHA . '_'))) {
+                       $this->show_form(_('Username must have only numbers, upper- and lowercase letters, and underscore (_).'));
                        return;
                }