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

View File

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