rapid-spreadjs 1.0.145 → 1.0.146

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -15392,7 +15392,7 @@ const FormulaUtils = {
15392
15392
  * @returns 返回true或false
15393
15393
  */
15394
15394
  isNumber: (content) => {
15395
- return /^(-?\d+)(\.\d+)?$/.test(content);
15395
+ return typeof content == 'number' || /^(-?\d+)(\.\d+)?$/.test(content);
15396
15396
  },
15397
15397
  /**
15398
15398
  * 将原始数组中的每个元素转换为数字类型