Package com.atlassian.jira.project
Class ProjectKeyRegexValidator
java.lang.Object
com.atlassian.jira.project.ProjectKeyRegexValidator
- All Implemented Interfaces:
Validator
Validates a project's regex. We can't do this exhaustively, so we:
- Make sure the new regex can match existing projects
- Check if the new regex matches a list of banned characters "naively", that is, construct strings with the banned character at the beginning, middle and end and see if the regex matches, rejecting it if so.
- Check if the new regex contains non-ascii characters
- Since:
- v4.4
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.validation.Validator
Validator.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionValidate the given string to see if it passes and if not, why not.
-
Constructor Details
-
ProjectKeyRegexValidator
public ProjectKeyRegexValidator()
-
-
Method Details
-
validate
Description copied from interface:ValidatorValidate the given string to see if it passes and if not, why not.
-