sigo-package 1.1.39 → 1.1.40
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/sigo-package.cjs.development.js +6 -2
- package/dist/sigo-package.cjs.development.js.map +1 -1
- package/dist/sigo-package.cjs.production.min.js +1 -1
- package/dist/sigo-package.cjs.production.min.js.map +1 -1
- package/dist/sigo-package.esm.js +6 -2
- package/dist/sigo-package.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -452,8 +452,12 @@ function convertDates(input) {
|
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
454
|
function isValidDate(dateString) {
|
|
455
|
-
var
|
|
456
|
-
|
|
455
|
+
var dateRegex = /^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(?:\.\d{3})?Z?)?$/;
|
|
456
|
+
if (!dateRegex.test(dateString)) {
|
|
457
|
+
return false;
|
|
458
|
+
}
|
|
459
|
+
var parsedDate = new Date(dateString);
|
|
460
|
+
return !isNaN(parsedDate.getTime());
|
|
457
461
|
}
|
|
458
462
|
|
|
459
463
|
var Position;
|