Skip to content

Commit

Permalink
string.match(regexp) returns null if no match
Browse files Browse the repository at this point in the history
  • Loading branch information
plehegar committed Sep 14, 2018
1 parent 891def3 commit 06f00a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,12 @@ Specberus.prototype.getFeedbackDueDate = function() {
;
dates= [];

for (var i = 0; i < candidates.length; i++) {
if (candidates !== null) {
for (var i = 0; i < candidates.length; i++) {
var d = this.stringToDate(candidates[i]);
if (d >= lowBound && d < highBound)
dates.push(d);
}
}
}
return dates;
Expand Down

0 comments on commit 06f00a7

Please sign in to comment.