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

View File

@@ -78,6 +78,11 @@ func main() {
continue
}
if isNumeric(upc) == true {
gtins = append(gtins, upc)
continue
}
// Lower case the E
upc = strings.ToLower(upc)
// Split scientific notation at the e+ point