Fix wildcard in middle of actionsglob/scaleUpTrigger.githubEvent.checkRun.names not working (#395)

actionsglob patterns like `foo-*-bar` was not correctly working. Tests and the implementation was enhanced to correctly support it.
This commit is contained in:
Yusuke Kuoka
2021-03-17 06:46:48 +09:00
committed by GitHub
parent 264cf494e3
commit 9b871567b1
2 changed files with 17 additions and 1 deletions

View File

@@ -65,7 +65,7 @@ func Match(pat string, s string) bool {
s = subs[1]
wildcardInHead = false
wildcardInHead = wildcardInTail
}
r := s == ""