1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00

Quick fix on #476

This commit is contained in:
Unknwon 2014-09-16 20:58:06 -04:00
parent d082e821a0
commit ae3639868e

View file

@ -35,7 +35,7 @@ func ParseVersion(verStr string) (*Version, error) {
case 1:
v.Minor, _ = com.StrTo(s).Int()
case 2:
v.Patch, _ = com.StrTo(s).Int()
v.Patch, _ = com.StrTo(strings.TrimSpace(s)).Int()
}
}
return v, nil