aboutsummaryrefslogtreecommitdiffstats
path: root/modules/util/time_str.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/util/time_str.go')
-rw-r--r--modules/util/time_str.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/util/time_str.go b/modules/util/time_str.go
index 0fccfe82cc..81b132c3db 100644
--- a/modules/util/time_str.go
+++ b/modules/util/time_str.go
@@ -59,7 +59,7 @@ func TimeEstimateParse(timeStr string) (int64, error) {
unit := timeStr[match[4]:match[5]]
found := false
for _, u := range timeStrGlobalVars().units {
- if strings.ToLower(unit) == u.name {
+ if strings.EqualFold(unit, u.name) {
total += amount * u.num
found = true
break