aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-10-19 10:00:01 +0200
committerBjørn Erik Pedersen <[email protected]>2024-10-19 10:00:01 +0200
commitf5e54d9c7d6642ba5435e7342761f684c84f4b1a (patch)
treebfa5126b2f1bdaeedea3e1a1feef38079e650c19
parent42f37b4e98e6f9621af4f1da40e831525f65fc0e (diff)
downloadhugo-f5e54d9c7d6642ba5435e7342761f684c84f4b1a.tar.gz
hugo-f5e54d9c7d6642ba5435e7342761f684c84f4b1a.zip
common/herrors: Fix the deferred error message cleaner regexp
Make it less gready.
-rw-r--r--common/herrors/errors.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/herrors/errors.go b/common/herrors/errors.go
index e7f91462e..40833e55c 100644
--- a/common/herrors/errors.go
+++ b/common/herrors/errors.go
@@ -137,7 +137,7 @@ var nilPointerErrRe = regexp.MustCompile(`at <(.*)>: error calling (.*?): runtim
const deferredPrefix = "__hdeferred/"
-var deferredStringToRemove = regexp.MustCompile(`executing "__hdeferred/.*" `)
+var deferredStringToRemove = regexp.MustCompile(`executing "__hdeferred/.*?" `)
// ImproveRenderErr improves the error message for rendering errors.
func ImproveRenderErr(inErr error) (outErr error) {