Skip to content

Commit

Permalink
CXFLW-1093 added code for pattern support in branch list (#1348)
Browse files Browse the repository at this point in the history
Co-authored-by: Satyam Chaurasia <[email protected]>
  • Loading branch information
1 parent 70fea4a commit 67a5c03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/checkmarx/flow/service/HelperService.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ public boolean isBranchProtected(String branchToCheck, List<String> protectedBra
result = true;
log.info("Scanning default branch - {}", request.getDefaultBranch());
} else {
result = protectedBranchPatterns.stream().anyMatch(aBranch -> strMatches(aBranch, branchToCheck));
result= protectedBranchPatterns.stream().anyMatch(aBranch -> Pattern.matches(aBranch, branchToCheck));

}
return result;
}
Expand Down

0 comments on commit 67a5c03

Please sign in to comment.