validProjectName sets the appropriate error message. 

> On Mar 21, 2014, at 2:22 PM, KeithJH <notifications@github.com> wrote:
> 
> In PHP/CommonMethods.php:
> 
> > +
> > +    $pattern = "/^[a-zA-Z0-9_\- ]+$/";
> > +    if (preg_match($pattern, $projectName) !== 1) {
> > +        setReturnValueError($returnValue, "The project name can only include alphanumeric characters, hyphens (-), underscores (_), and spaces.");
> > +        return false;
> > +    }
> > +
> > +    return true;
> > +}
> > +
> > +function createProject(&$returnValue, $projectName) {
> > +    global $projectSerializer;
> > +    
> > +    // Make sure the project name is valid.
> > +    if (!validProjectName($projectName, $returnValue)) {
> > +        return false;
> No setReturnValueError()?
> 
> —
> Reply to this email directly or view it on GitHub.