Browse Source

really minor change to the logic here

Justin LeFebvre 12 years ago
parent
commit
b5ecf012db
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      semver.go

+ 2
- 5
semver.go View File

@ -360,11 +360,8 @@ func containsOnly(s string, set string) bool {
}
func hasLeadingZeroes(s string) bool {
if len(s) <= 1 {
return false
}
if s[0] == '0' {
return true
if len(s) > 1 {
return strings.HasPrefix(s, "0")
}
return false
}


Loading…
Cancel
Save