change twitter username to allow uppercase letters and underscores

darcs-hash:20080923060314-5ed1f-2ec4894251b99a2f9e9763ecc41659533bfab2eb.gz
This commit is contained in:
Evan Prodromou 2008-09-23 02:03:14 -04:00
parent 858e55f5b4
commit b2b475d313
1 changed files with 3 additions and 3 deletions

View 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;
}