Skip to content

Commit

Permalink
remove quotes from regex (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
AyodeAwe authored Sep 25, 2024
1 parent 9880f8c commit 1e1e2d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const isVersionedBranch = (branchName: string): boolean => {
* @param branchName
*/
export const isVersionedUCXBranch = (branchName: string): boolean => {
const regex = "/^branch-\d{1,2}\.\d\d$/";
const regex = /^branch-\d{1,2}\.\d\d$/;
return Boolean(branchName.match(regex));
};

Expand Down

0 comments on commit 1e1e2d5

Please sign in to comment.