Skip to content

Commit

Permalink
Fixed bug where datetime columns would cause warns
Browse files Browse the repository at this point in the history
  • Loading branch information
nozavroni committed May 4, 2020
1 parent 01c55b3 commit 787683e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CSVelte/Taster.php
Expand Up @@ -825,7 +825,7 @@ protected function lickType($data)
}
if (preg_match("/^{$date}$/i", $data)) {
return self::TYPE_DATE;
} elseif (preg_match("/^{$date} {$time}$/i")) {
} elseif (preg_match("/^{$date} {$time}$/i", $data)) {
return self::TYPE_DATETIME;
}
} catch (\Exception $e) {
Expand Down

0 comments on commit 787683e

Please sign in to comment.