@firestitch/api
Advanced tools
Comparing version 12.3.7 to 12.3.8
@@ -630,5 +630,5 @@ (function (global, factory) { | ||
if (typeof data === 'string') { | ||
var match = data.match(/(^\d{4}-\d{2}-\d{2})([T]\d{2}:\d{2}:\d{2})?([+-]\d{2}:\d{2}|\.\d{3}Z)?$/); | ||
var match = data.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}([+-]\d{2}:\d{2}|\.\d{3}Z)?$/); | ||
if (match) { | ||
data = match[3] ? date.parse(data) : date.parseLocal(data); | ||
data = match[1] ? date.parse(data) : date.parseLocal(data); | ||
} | ||
@@ -635,0 +635,0 @@ } |
@@ -17,5 +17,5 @@ import { parse, parseLocal } from '@firestitch/date'; | ||
if (typeof data === 'string') { | ||
const match = data.match(/(^\d{4}-\d{2}-\d{2})([T]\d{2}:\d{2}:\d{2})?([+-]\d{2}:\d{2}|\.\d{3}Z)?$/); | ||
const match = data.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}([+-]\d{2}:\d{2}|\.\d{3}Z)?$/); | ||
if (match) { | ||
data = match[3] ? parse(data) : parseLocal(data); | ||
data = match[1] ? parse(data) : parseLocal(data); | ||
} | ||
@@ -27,2 +27,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzcG9uc2UtYm9keS5oYW5kbGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2FwcC9oYW5kbGVycy9yZXNwb25zZS1ib2R5LmhhbmRsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLEtBQUssRUFBRSxVQUFVLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUtyRCxNQUFNLE9BQU8sd0JBQXdCO0lBRTVCLE9BQU8sQ0FBQyxLQUFLLEVBQUUsTUFBTTs7UUFDMUIsSUFBSSxDQUFDLF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F0Y2hbMV0gPyBwYXJzZShkYXRhKSA6IHBhcnNlTG9jYWwoZGF0YSk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gZGF0YTtcbiAgfVxufVxuIl19 |
@@ -256,5 +256,5 @@ import * as i2 from '@angular/common/http'; | ||
if (typeof data === 'string') { | ||
const match = data.match(/(^\d{4}-\d{2}-\d{2})([T]\d{2}:\d{2}:\d{2})?([+-]\d{2}:\d{2}|\.\d{3}Z)?$/); | ||
const match = data.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}([+-]\d{2}:\d{2}|\.\d{3}Z)?$/); | ||
if (match) { | ||
data = match[3] ? parse(data) : parseLocal(data); | ||
data = match[1] ? parse(data) : parseLocal(data); | ||
} | ||
@@ -261,0 +261,0 @@ } |
{ | ||
"name": "@firestitch/api", | ||
"version": "12.3.7", | ||
"version": "12.3.8", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
326056