fixed bug where real numbers crashed app

This commit is contained in:
2025-05-06 16:52:18 -04:00
parent 41f592ec45
commit 25a7658328
4 changed files with 62 additions and 0 deletions

10
isNumeric.go Normal file
View File

@@ -0,0 +1,10 @@
package main
import (
"regexp"
)
func isNumeric(s string) bool {
match, _ := regexp.MatchString("^[0-9]+$", s)
return match
}