This website works better with JavaScript.
Home
Explore
Help
Sign In
brettlangdon
/
pypihub
mirror of
https://github.com/brettlangdon/pypihub.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
1
Wiki
Activity
Browse Source
really minor change to the logic here
Justin LeFebvre
12 years ago
parent
0f7f01176b
commit
b5ecf012db
1 changed files
with
2 additions
and
5 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
}
Write
Preview
Loading…
Cancel
Save