mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Quick fix on #476
This commit is contained in:
		@@ -35,7 +35,7 @@ func ParseVersion(verStr string) (*Version, error) {
 | 
				
			|||||||
		case 1:
 | 
							case 1:
 | 
				
			||||||
			v.Minor, _ = com.StrTo(s).Int()
 | 
								v.Minor, _ = com.StrTo(s).Int()
 | 
				
			||||||
		case 2:
 | 
							case 2:
 | 
				
			||||||
			v.Patch, _ = com.StrTo(s).Int()
 | 
								v.Patch, _ = com.StrTo(strings.TrimSpace(s)).Int()
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return v, nil
 | 
						return v, nil
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user