@fangxq/request
Advanced tools
Comparing version 0.0.23 to 0.0.24
@@ -6,3 +6,3 @@ const axios = require('axios') | ||
if (typeof value === 'string') { | ||
a = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d{3})?)Z$/.exec(value); | ||
a = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})Z$/.exec(value); | ||
if (a) { | ||
@@ -9,0 +9,0 @@ return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4], +a[5], +a[6], +a[7])); |
@@ -10,3 +10,3 @@ const fs = require('fs') | ||
if (typeof value === 'string') { | ||
a = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d{3})?)Z$/.exec(value); | ||
a = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})Z$/.exec(value); | ||
if (a) { | ||
@@ -13,0 +13,0 @@ return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4], +a[5], +a[6], +a[7])); |
{ | ||
"name": "@fangxq/request", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
2983