From: Dan Vanderkam Date: Thu, 3 Feb 2011 23:03:44 +0000 (-0500) Subject: fix bug 92 X-Git-Tag: v1.0.0~587^2~2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=ea62df82c89d7d6f4e96a0d975f67b29fcb41522;p=dygraphs.git fix bug 92 --- diff --git a/dygraph.js b/dygraph.js index 6bdb143..b3433e2 100644 --- a/dygraph.js +++ b/dygraph.js @@ -2730,7 +2730,7 @@ Dygraph.dateParser = function(dateStr, self) { */ Dygraph.prototype.detectTypeFromString_ = function(str) { var isDate = false; - if (str.indexOf('-') >= 0 || + if (str.indexOf('-') > 0 || str.indexOf('/') >= 0 || isNaN(parseFloat(str))) { isDate = true;