mirror of
https://gitee.com/johng/gf
synced 2026-06-30 11:05:11 +08:00
修正gstr.IsNumeric错误
This commit is contained in:
@ -79,7 +79,7 @@ func IsLetterUpper(b byte) bool {
|
||||
// 判断锁给字符串是否为数字
|
||||
func IsNumeric(s string) bool {
|
||||
for i := 0; i < len(s); i++ {
|
||||
if s[i] < byte('0') && s[i] > byte('9') {
|
||||
if s[i] < byte('0') || s[i] > byte('9') {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user