Fix HTTP Addr & macOS v3 m_nsUsrName is NULL (#4)
This commit is contained in:
@@ -32,3 +32,12 @@ func MustAnyToInt(v interface{}) int {
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func IsNumeric(s string) bool {
|
||||
for _, r := range s {
|
||||
if !unicode.IsDigit(r) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return len(s) > 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user