postgres-date
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -7,4 +7,9 @@ 'use strict' | ||
var BC = /BC$/ | ||
var INFINITY = /^-?infinity$/ | ||
module.exports = function parseDate (isoDate) { | ||
if (INFINITY.test(isoDate)) { | ||
// Capitalize to Infinity before passing to Number | ||
return Number(isoDate.replace('i', 'I')) | ||
} | ||
var matches = DATE_TIME.exec(isoDate) | ||
@@ -11,0 +16,0 @@ |
{ | ||
"name": "postgres-date", | ||
"main": "index.js", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Postgres date column parser", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
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
4114
63