summaryrefslogtreecommitdiff
path: root/lib.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-03-18 00:52:10 +0800
committerxuri <xuri.me@gmail.com>2022-03-18 00:52:10 +0800
commit14b461420fc3d3b06b01d7b0584b422b3e1b40fb (patch)
tree5a51208181c9ec1042e0610a533cd3b6332171a9 /lib.go
parent1da129a3df144d69cfc67f05a4dec88063a774e8 (diff)
This fix scientific notation and page setup fields parsing issue
Diffstat (limited to 'lib.go')
-rw-r--r--lib.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib.go b/lib.go
index d0ae62c..5bbbec9 100644
--- a/lib.go
+++ b/lib.go
@@ -688,7 +688,8 @@ func isNumeric(s string) (bool, int) {
if i == 0 && v == '-' {
continue
}
- if e && v == '-' {
+ if e && (v == '+' || v == '-') {
+ p = 15
continue
}
return false, 0