-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/category/add: prohibit repeated special characters #465
Comments
Hmm... |
Warning means that user can ignore it, that this is something optional. But it should be mandatory. To understand more about why we need it, read my comments in the #403
Note that now we're talking about country name (and not the user's login). Do you know the country that has two hyphens in its name? P.S. "user wantS" |
The title of issue /category/add: prohibit repeated special characters |
Ah, yes, I'm sorry, I've mixed the issues because they're similar. But the point is still valid: name of the category is something meaningful and from the real life (for example, Sport, Cars, Holidays, etc). |
Ok, will be done. =) |
Should be in c8f2dca commit. Addressed to php-coder#465 No code changes.
Should be in c8f2dca commit. Addressed to php-coder#465 No code changes.
When user specifies the names of category during its creation, we should validate these names and prohibit the repetition of the hyphen (for example:
te--st
). Also we should add the converter that will replace two and more spaces into single.Note that we should apply this conversion/validation to the both fields.
What should be done:
@Pattern
will be helpful)(Extracted from #403)
The text was updated successfully, but these errors were encountered: