sherlockjs
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -282,3 +282,3 @@ /*! | ||
// if this is an end date and the start date isn't an all day value, | ||
(!(startTime && startTime.isAllDay) && | ||
(!(startTime && startTime.isAllDay) && | ||
// and if this match is too short to mean something, | ||
@@ -289,3 +289,3 @@ match.length <= 2)) | ||
match = match.match(patterns.daysOnly); | ||
var month = time.getMonth(), | ||
@@ -314,3 +314,3 @@ day = match[1]; | ||
else { | ||
// we are dealing with a time range that is today with start > end | ||
// we are dealing with a time range that is today with start > end | ||
// (ie. 9pm - 5pm when we want 9am - 5pm), roll back 12 hours. | ||
@@ -590,10 +590,10 @@ start.setHours(start.getHours() - 12); | ||
if(!String.prototype.trim) { | ||
String.prototype.trim = function () { | ||
return this.replace(/^\s+|\s+$/g,''); | ||
}; | ||
if(!String.prototype.trim) { | ||
String.prototype.trim = function () { | ||
return this.replace(/^\s+|\s+$/g,''); | ||
}; | ||
} | ||
return { | ||
// parses a string and returns an object defining the basic event | ||
// parses a string and returns an object defining the basic event | ||
// with properties: eventTitle, startDate, endDate, isAllDay | ||
@@ -612,3 +612,3 @@ // plus anything Watson adds on... | ||
tokens = readConfig("disableRanges") ? [str.toLowerCase()] : str.toLowerCase().split(patterns.rangeSplitters); | ||
patterns.rangeSplitters.lastIndex = 0; | ||
@@ -705,1 +705,3 @@ | ||
})(); | ||
module.exports.Sherlock = Sherlock; |
{ | ||
"name": "sherlockjs", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A natural language datetime parser", | ||
@@ -5,0 +5,0 @@ "main": "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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
25614
627
0