Closed
Description
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:
- Add integration tests
- Add validation (
@Pattern
will be helpful)
(Extracted from #403)