summaryrefslogtreecommitdiff
path: root/lib.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib.go')
-rw-r--r--lib.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib.go b/lib.go
index 945c6f0..7f388e0 100644
--- a/lib.go
+++ b/lib.go
@@ -688,6 +688,9 @@ func (f *File) addSheetNameSpace(sheet string, ns xml.Attr) {
// isNumeric determines whether an expression is a valid numeric type and get
// the precision for the numeric.
func isNumeric(s string) (bool, int, float64) {
+ if strings.Contains(s, "_") {
+ return false, 0, 0
+ }
var decimal big.Float
_, ok := decimal.SetString(s)
if !ok {