diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-04-29 05:23:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-28 17:23:19 -0400 |
commit | bc4e06109dae33edc0a9a918f244563f05a1a353 (patch) | |
tree | 6fd2e68d8d3b874576fdd6a2c7a4a4681bef6c98 /modules/templates | |
parent | bc784a705bc5a49ddb3ceffe1ef1205fd15f0c08 (diff) | |
download | gitea-bc4e06109dae33edc0a9a918f244563f05a1a353.tar.gz gitea-bc4e06109dae33edc0a9a918f244563f05a1a353.zip |
Make repo size style matches others (commits/branches/tags) (#24408)
The "unit" part shouldn't have bold style.
Diffstat (limited to 'modules/templates')
-rw-r--r-- | modules/templates/util_string.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/templates/util_string.go b/modules/templates/util_string.go index e86bbe9e70..42d11fc990 100644 --- a/modules/templates/util_string.go +++ b/modules/templates/util_string.go @@ -18,3 +18,7 @@ func (su *StringUtils) HasPrefix(s, prefix string) bool { func (su *StringUtils) Contains(s, substr string) bool { return strings.Contains(s, substr) } + +func (su *StringUtils) Split(s, sep string) []string { + return strings.Split(s, sep) +} |