@abcnews/fuzzy-dates
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -17,3 +17,3 @@ 'use strict'; | ||
function parse(possibleDatetime, helperDate) { | ||
var tokens = possibleDatetime.toLowerCase().split(' '); | ||
var tokens = possibleDatetime.indexOf(' ') > -1 ? possibleDatetime.toLowerCase().split(/[\s-]/) : possibleDatetime.toLowerCase().split(' '); | ||
@@ -188,3 +188,3 @@ // Keep track of the meanings of the tokens | ||
* Output a date (optionally fuzzy) as something like February 10, 2017 or Mid February, 2017 | ||
* @param {Date} date | ||
* @param {Date} date | ||
* @param {boolean} shortMonth | ||
@@ -191,0 +191,0 @@ * @return {string} |
{ | ||
"name": "@abcnews/fuzzy-dates", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "A fuzzy date parser/sorter", | ||
@@ -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
8853