Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/writefreely/writefreely
/ isBadNum
Function
isBadNum
semver.go:214–220 ·
view source on GitHub ↗
(v string)
Source
from the content-addressed store, hash-verified
212
}
213
214
func
isBadNum(v string) bool {
215
i := 0
216
for
i < len(v) &&
'0'
<= v[i] && v[i] <=
'9'
{
217
i++
218
}
219
return
i == len(v) && i > 1 && v[0] ==
'0'
220
}
221
222
func
isNum(v string) bool {
223
i := 0
Callers
1
parsePrerelease
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected