summaryrefslogtreecommitdiff
path: root/lib.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib.go')
-rw-r--r--lib.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib.go b/lib.go
index 5bbbec9..439e50a 100644
--- a/lib.go
+++ b/lib.go
@@ -688,12 +688,15 @@ func isNumeric(s string) (bool, int) {
if i == 0 && v == '-' {
continue
}
- if e && (v == '+' || v == '-') {
+ if e && v == '-' {
+ return true, 0
+ }
+ if e && v == '+' {
p = 15
continue
}
return false, 0
- } else if dot {
+ } else {
p++
}
n = true