Wrong Error Message For Excessively Long Project Name

Summary

When making a new project, if the name is too long, this error message comes up: erroneous_error_message Nowhere does it state the maximum name length. It only addresses valid characters.

Steps to reproduce

I don't know the exact character limit but Awfully Long Name That Someone Probably Wouldn't Use For A Serious Project But Should Be Addressed Nonetheless is guaranteed to reproduce this.

What is the current bug behavior?

An error message is displayed with these reasons:

  • Name can contain only letters, digits, emojis, '', '.', dash, space. It must start with letter, digit, emoji or ''.
  • Path can contain only letters, digits, '_', '-' and '.'. Cannot start with '-', end in '.git' or end in '.atom'

What is the expected correct behavior?

The form contains the following errors:

  • Name cannot exceed [limit] characters.

Possible fixes

Inject a different message on the page load.

<div class="alert alert-danger" id="error_explanation">
    <h4>The form contains the following errors:</h4>
    <ul>
        <li>Name cannot exceed [limit] characters.</li>
    </ul>
</div>