From ad3d408067ee155a75e33a59ef02f547a943b94e Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 7 May 2019 10:15:46 -0600 Subject: Add some tests and fix vet warning --- internal/caddyscript/lib/regex.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal') diff --git a/internal/caddyscript/lib/regex.go b/internal/caddyscript/lib/regex.go index a06a410..b151e64 100644 --- a/internal/caddyscript/lib/regex.go +++ b/internal/caddyscript/lib/regex.go @@ -45,6 +45,6 @@ func (r Regexp) MatchString(thread *starlark.Thread, fn *starlark.Builtin, args func (r Regexp) Freeze() {} func (r Regexp) Hash() (uint32, error) { return 0, fmt.Errorf("unhashable: Regexp") } -func (r Regexp) String() string { return fmt.Sprint(r) } +func (r Regexp) String() string { return "Regexp" } func (r Regexp) Type() string { return "Regexp" } func (r Regexp) Truth() starlark.Bool { return true } -- cgit v1.2.3