Skip to content

Commit

Permalink
Fix backslash.
Browse files Browse the repository at this point in the history
  • Loading branch information
inferno-chromium authored and naveensrinivasan committed Jan 15, 2021
1 parent b278475 commit b5096bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checks/packaging.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func Packaging(c checker.Checker) checker.CheckResult {
func isPackagingWorkflow(s string, fp string, c checker.Checker) bool {
// nodejs packages
if strings.Contains(s, "uses: actions/setup-node@") {
r1, _ := regexp.Compile("(?s)registry-url.*https://registry\.npmjs\.org")
r1, _ := regexp.Compile("(?s)registry-url.*https://registry\\.npmjs\\.org")
r2, _ := regexp.Compile("(?s)npm.*publish")

if r1.MatchString(s) && r2.MatchString(s) {
Expand Down

0 comments on commit b5096bf

Please sign in to comment.