mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-14 18:33:42 +02:00
Quick fix on #476
This commit is contained in:
1 parent
d082e821a0
commit
ae3639868e
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user