Skip to content

Commit

Permalink
feat: improve dependabot regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo-syn committed Jan 21, 2025
1 parent 4fa2b17 commit b687dea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var GitHubOutputPwshRegexp = regexp.MustCompile(`(?m)(?i:env):GITHUB_OUTPUT`)
var GitHubOutputBashRegexp = regexp.MustCompile(`(?m)>>\s*"*\${*GITHUB_OUTPUT`)
var GitHubEnvPwshRegexp = regexp.MustCompile(`(?m)(?i:env):GITHUB_ENV`)
var GitHubEnvBashRexexp = regexp.MustCompile(`(?m)>{1,2}\s*"*\${*GITHUB_ENV`)
var BotActor = regexp.MustCompile(`(?m)github.actor\s*==\s*["'].*\[bot\]`)
var BotActor = regexp.MustCompile(`(?m)github.(triggering_)?actor\s*?(=|!)=\s*?["'].*?\[bot\]`)

// GitCheckoutBashRexexp It’s not possible to include a backtick in a raw string literal (https://yourbasic.org/golang/multiline-string/)
var GitCheckoutBashRexexp = regexp.MustCompile(`(?m)git checkout.*(\$|` + regexp.QuoteMeta("`") + `)`)
Expand Down

0 comments on commit b687dea

Please sign in to comment.