From c4fae4ac4f5a9854decad8718b35e07d6b977334 Mon Sep 17 00:00:00 2001 From: Matheus Poleza Date: Mon, 5 Jun 2023 23:53:11 -0300 Subject: [PATCH] fix: adds number to branch name regex (CT-000) (#59) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bruna LuĂ­sa Ferreira --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 223121d..66b70e6 100644 --- a/index.js +++ b/index.js @@ -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 {