Skip to content

Commit e9de59a

Browse files
committed
tstest/deptest: fix minor escaping error in regex
Fixes https://github.com/tailscale/tailscale/security/code-scanning/112 Signed-off-by: James Tucker <james@tailscale.com>
1 parent b48b7d8 commit e9de59a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tstest/deptest/deptest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func ImportAliasCheck(t testing.TB, relDir string) {
7373
t.Logf("ignoring error: %v, %s", err, matches)
7474
return
7575
}
76-
badRx := regexp.MustCompile(`^([^:]+:\d+):\s+"golang.org/x/exp/(slices|maps)"`)
76+
badRx := regexp.MustCompile(`^([^:]+:\d+):\s+"golang\.org/x/exp/(slices|maps)"`)
7777
if s := strings.TrimSpace(string(matches)); s != "" {
7878
for _, line := range strings.Split(s, "\n") {
7979
if m := badRx.FindStringSubmatch(line); m != nil {

0 commit comments

Comments
 (0)