sz-mx-cabin-yjb
Advanced tools
Comparing version 0.0.45 to 0.0.46
@@ -82,5 +82,3 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
valDate = value.replace(pattern, '$1-$2-$3'); | ||
} | ||
if (value.length === 6) { | ||
} else if (value.length === 6) { | ||
valDate = value.replace(pattern, '$1-$2'); | ||
@@ -92,4 +90,3 @@ } else { | ||
var date = new Date(Date.parse(valDate)); | ||
console.log('---value', value, '---valDate', valDate, '---Date.parse(value)', Date.parse(value), '---date', date, '---', date.getTime()); // 判断日期对象是否是有效的 | ||
var date = new Date(Date.parse(valDate)); // 判断日期对象是否是有效的 | ||
@@ -96,0 +93,0 @@ if (isNaN(date.getTime())) { |
@@ -103,5 +103,3 @@ "use strict"; | ||
valDate = value.replace(pattern, '$1-$2-$3'); | ||
} | ||
if (value.length === 6) { | ||
} else if (value.length === 6) { | ||
valDate = value.replace(pattern, '$1-$2'); | ||
@@ -113,4 +111,3 @@ } else { | ||
var date = new Date(Date.parse(valDate)); | ||
console.log('---value', value, '---valDate', valDate, '---Date.parse(value)', Date.parse(value), '---date', date, '---', date.getTime()); // 判断日期对象是否是有效的 | ||
var date = new Date(Date.parse(valDate)); // 判断日期对象是否是有效的 | ||
@@ -117,0 +114,0 @@ if (isNaN(date.getTime())) { |
{ | ||
"name": "sz-mx-cabin-yjb", | ||
"version": "0.0.45", | ||
"version": "0.0.46", | ||
"description": "reactCabin", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1217807
26273