ZF-9084: Regex in _validateScreenName allows 20 characters
Description
Shouldn't the regex used in the validateScreenName method not be '/^[a-zA-Z0-9]{0,15}$/' instead of '/^[a-zA-Z0-9_]{0,20}$/' as the follow-up Exception message indicates?
Shouldn't the regex used in the validateScreenName method not be '/^[a-zA-Z0-9]{0,15}$/' instead of '/^[a-zA-Z0-9_]{0,20}$/' as the follow-up Exception message indicates?
Comments
Posted by Marc Hodgins (mjh_ca) on 2010-10-26T02:24:39.000+0000
Yes, Twitter usernames are limited to 15 chars. Updated the regex in attached patch.
Posted by Matthew Weier O'Phinney (matthew) on 2010-10-27T07:03:59.000+0000
Patch applied to trunk and 1.11 release branch -- will release with 1.11.1.