summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/caddyscript/lib/regex.go2
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 }