Skip to content

Commit

Permalink
fix wrong function used
Browse files Browse the repository at this point in the history
  • Loading branch information
emar-kar committed Dec 12, 2023
1 parent 5cf27d6 commit 4ec0d83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 4ec0d83

Please sign in to comment.