Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
Delete console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
al66 committed May 26, 2017
1 parent e01b9fd commit aec9972
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/cond.js
Expand Up @@ -119,7 +119,6 @@ var evalCond = function( tokens, cond ) {
};

var convertDate = function(dateString) {
console.log('start parse:', dateString);
let d = null;
// convert european date format dd.mm.yyyy to yyyy/mm/dd
if (dateString.match(/^\d{1,2}\.\d{1,2}\.\d{4}$/)) {
Expand All @@ -137,7 +136,6 @@ var convertDate = function(dateString) {
d = d.concat().join('/');
};
if (!d) d = dateString;
console.log('parse:', d);
return Date.parse(d);
};

Expand All @@ -151,7 +149,6 @@ var compiler = function( condStr) {
while (tokens && tokens.length>0) {
evalCond(tokens, cond);
};
console.log('cond:', cond);
return cond;
};

Expand All @@ -174,7 +171,6 @@ var check = function(data, cond) {
if (single.date) {
value = convertDate(data);
}
console.log(value, single.low, single.high);
switch (single.method) {
case 'EQ':
return value == single.low;
Expand Down

0 comments on commit aec9972

Please sign in to comment.