Skip to content

Commit

Permalink
fix(bash): jira pattern accept numbers and must have a charater
Browse files Browse the repository at this point in the history
  • Loading branch information
kaledor2 committed Feb 24, 2022
1 parent 1f06cca commit 9743dd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ readonly HEADER_PATTERN="^([^\(]+)\(([^\)]+)\): (.+)$"
readonly TYPE_PATTERN="^(feat|fix|docs|gen|lint|refactor|test|chore)$"
readonly SCOPE_PATTERN="^([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
readonly SUBJECT_PATTERN="^([a-z0-9].*[^ ^\.])$"
readonly JIRA_PATTERN="^([A-Z]{2,4}-[0-9]{1,6} ?)+$"
readonly JIRA_PATTERN="^([A-Z]{2,4}[0-9]{0,6}-[0-9]{1,6} ?)+$"
readonly JIRA_HEADER_PATTERN="^.*([A-Z]{3,4}-[0-9]{1,6}).*$"
readonly BROKE_PATTERN="^BROKEN:$"
readonly TRAILING_SPACE_PATTERN=" +$"
Expand Down

0 comments on commit 9743dd0

Please sign in to comment.