Commit 0a54f6e4 authored by Daniel Weisser's avatar Daniel Weisser
Browse files

Fix the edge case with due keyword at start

parent 93d47d2a
......@@ -24,7 +24,7 @@ SugarDueExtension.prototype.parsingFunction = function (line) {
var indexDueKeyword = line.indexOf("due:");
// Find keyword due
if (indexDueKeyword > 0) {
if (indexDueKeyword >= 0) {
var stringAfterDue = line.substr(indexDueKeyword + 4)
var words = stringAfterDue.split(" ");
var match = null;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment