diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-10-19 10:00:01 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-10-19 10:00:01 +0200 |
commit | f5e54d9c7d6642ba5435e7342761f684c84f4b1a (patch) | |
tree | bfa5126b2f1bdaeedea3e1a1feef38079e650c19 | |
parent | 42f37b4e98e6f9621af4f1da40e831525f65fc0e (diff) | |
download | hugo-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.go | 2 |
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) { |