lib/write_xlsx/chart.rb in write_xlsx-0.85.8 vs lib/write_xlsx/chart.rb in write_xlsx-0.85.9
- old
+ new
@@ -2629,10 +2629,10 @@
write_num_ref_or_lit(values, data)
end
end
def write_num_ref_or_lit(values, data)
- if values =~ /^=/ # '=Sheet1!$A$1:$A$5'
+ if values.to_s =~ /^=/ # '=Sheet1!$A$1:$A$5'
write_num_ref(values, data, 'num')
else # [1, 2, 3]
write_num_lit(values)
end
end