aboutsummaryrefslogtreecommitdiffstats
path: root/modules/templates/util_string.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/templates/util_string.go')
-rw-r--r--modules/templates/util_string.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/templates/util_string.go b/modules/templates/util_string.go
index 2ae27d0833..382e2de13f 100644
--- a/modules/templates/util_string.go
+++ b/modules/templates/util_string.go
@@ -60,3 +60,7 @@ func (su *StringUtils) EllipsisString(s string, maxLength int) string {
func (su *StringUtils) ToUpper(s string) string {
return strings.ToUpper(s)
}
+
+func (su *StringUtils) TrimPrefix(s, prefix string) string {
+ return strings.TrimPrefix(s, prefix)
+}