mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-22 12:58:37 +00:00
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>
This commit is contained in:
parent
b48b7d82d0
commit
e9de59a315
@ -73,7 +73,7 @@ func ImportAliasCheck(t testing.TB, relDir string) {
|
||||
t.Logf("ignoring error: %v, %s", err, matches)
|
||||
return
|
||||
}
|
||||
badRx := regexp.MustCompile(`^([^:]+:\d+):\s+"golang.org/x/exp/(slices|maps)"`)
|
||||
badRx := regexp.MustCompile(`^([^:]+:\d+):\s+"golang\.org/x/exp/(slices|maps)"`)
|
||||
if s := strings.TrimSpace(string(matches)); s != "" {
|
||||
for _, line := range strings.Split(s, "\n") {
|
||||
if m := badRx.FindStringSubmatch(line); m != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user