Skip to content

Commit

Permalink
Merge pull request #24 from lumapps/jira_pattern_accept_numbers
Browse files Browse the repository at this point in the history
fix(bash): jira pattern accept numbers
  • Loading branch information
sebastien-boulle authored Feb 24, 2022
2 parents 1f06cca + 9743dd0 commit dc828d7
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 dc828d7

Please sign in to comment.