Skip to content

/category/add: prohibit repeated special characters #465

Closed
@php-coder

Description

@php-coder

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)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions