cmd/tailscale: don't depend on regexp in minbox builds

Updates #12614
Updates #18562

Change-Id: Ife4f10c55d1d68569938ffd68ffe72eef889e200
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2026-02-04 11:12:47 -08:00
committed by Brad Fitzpatrick
parent 058cc3f82b
commit 0c5b17c1d3
4 changed files with 31 additions and 11 deletions
+2 -2
View File
@@ -1804,8 +1804,8 @@ func TestSanitizeWriter(t *testing.T) {
buf := new(bytes.Buffer)
w := sanitizeOutput(buf)
in := []byte(`my auth key is tskey-auth-abc123-def456, what's yours?`)
want := []byte(`my auth key is tskey-REDACTED, what's yours?`)
in := []byte(`my auth key is tskey-auth-abc123-def456 and tskey-foo, what's yours?`)
want := []byte(`my auth key is tskey-XXXXXXXXXXXXXXXXXX and tskey-XXX, what's yours?`)
n, err := w.Write(in)
if err != nil {
t.Fatal(err)