diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2019-05-07 10:15:46 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2019-05-07 10:15:46 -0600 |
commit | ad3d408067ee155a75e33a59ef02f547a943b94e (patch) | |
tree | 040f2dd97dbcc9281b7ba14fa6c1d8fd9318c0f4 /internal/caddyscript/lib | |
parent | e40bbecb16d196d2d700a9484e53c11b64dfe8d9 (diff) |
Add some tests and fix vet warning
Diffstat (limited to 'internal/caddyscript/lib')
-rw-r--r-- | internal/caddyscript/lib/regex.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |