From 4ec0d83c9222c7bff09d7fcbf11a8c3ac27d3375 Mon Sep 17 00:00:00 2001 From: Leonid Emar-Kar Date: Tue, 12 Dec 2023 19:14:41 +0000 Subject: [PATCH] fix wrong function used --- template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template.go b/template.go index afdf9a8..b461f41 100644 --- a/template.go +++ b/template.go @@ -85,7 +85,7 @@ func parse(str string) *Template { t.strictLeft = !strings.HasPrefix(str, "*") str = strings.TrimPrefix(str, "*") t.strictRight = !strings.HasSuffix(str, "*") - t.base = strings.TrimPrefix(str, "*") + t.base = strings.TrimSuffix(str, "*") return t }