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.cjs.js CHANGED
@@ -15414,7 +15414,7 @@ const FormulaUtils = {
15414
15414
  * @returns 返回true或false
15415
15415
  */
15416
15416
  isNumber: (content) => {
15417
- return /^(-?\d+)(\.\d+)?$/.test(content);
15417
+ return typeof content == 'number' || /^(-?\d+)(\.\d+)?$/.test(content);
15418
15418
  },
15419
15419
  /**
15420
15420
  * 将原始数组中的每个元素转换为数字类型