Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
fix: adds number to branch name regex (CT-000) (#59)
Browse files Browse the repository at this point in the history
Co-authored-by: Bruna Luísa Ferreira <[email protected]>
  • Loading branch information
matheuspoleza and Bruna Luísa Ferreira authored Jun 6, 2023
1 parent f0a635e commit c4fae4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

const branchName = require('current-git-branch');

const branchRegex = /^\w+\/(\S+\/)?[A-Za-z]+-\d+$/;
const branchRegex = /^\w+\/(\S+\/)?[A-Z][\dA-Z]{1,2}-\d+$/;
const EXCEPTIONS = [/^production$/, /^trying$/, /^staging$/, /^master$/, /^break-glass.*$/];

try {
Expand Down

0 comments on commit c4fae4a

Please sign in to comment.