From b372c2e3d2fe71a563e4ace17519111396510aa3 Mon Sep 17 00:00:00 2001 From: Adam Hill Date: Sat, 1 Oct 2016 10:18:52 -0500 Subject: [PATCH] Fixes #150 During the beginning of the month with the log having two spaces between Month & Day we get 9 values back instead of 8. Stripping double spaces fixes. E.G. `Oct 1` comapred to `Sep 26` --- data.php | 1 + 1 file changed, 1 insertion(+) diff --git a/data.php b/data.php index d059810d..a4be0985 100644 --- a/data.php +++ b/data.php @@ -266,6 +266,7 @@ } function findAds($var) { + $var = preg_replace('/ {2,}/', ' ', $var); $exploded = explode(" ", $var); if(count($exploded) == 8) { $tmp = $exploded[count($exploded) - 4];