nozavroni / csvelte

🕺🏻 CSV and Tabular Data library for PHP
http://phpcsv.com/
Other
6 stars 0 forks source link

datetime causes warnings in taster #197

Open nozavroni opened 4 years ago

nozavroni commented 4 years ago

Taster issues warnings when it runs up against datetime strings:

PHP Warning: preg_match() expects at least 2 parameters, 1 given in /Users/luke/PhpstormProjects/testcsv/vendor/nozavroni/csvelte/src/CSVelte/Taster.php on line 828

Warning: preg_match() expects at least 2 parameters, 1 given in /Users/luke/PhpstormProjects/testcsv/vendor/nozavroni/csvelte/src/CSVelte/Taster.php on line 828 PHP Warning: preg_match() expects at least 2 parameters, 1 given in /Users/luke/PhpstormProjects/testcsv/vendor/nozavroni/csvelte/src/CSVelte/Taster.php on line 828

Warning: preg_match() expects at least 2 parameters, 1 given in /Users/luke/PhpstormProjects/testcsv/vendor/nozavroni/csvelte/src/CSVelte/Taster.php on line 828 PHP Warning: preg_match() expects at least 2 parameters, 1 given in /Users/luke/PhpstormProjects/testcsv/vendor/nozavroni/csvelte/src/CSVelte/Taster.php on line 828

Warning: preg_match() expects at least 2 parameters, 1 given in /Users/luke/PhpstormProjects/testcsv/vendor/nozavroni/csvelte/src/CSVelte/Taster.php on line 828 PHP Warning: preg_match() expects at least 2 parameters, 1 given in /Users/luke/PhpstormProjects/testcsv/vendor/nozavroni/csvelte/src/CSVelte/Taster.php on line 828

Warning: preg_match() expects at least 2 parameters, 1 given in /Users/luke/PhpstormProjects/testcsv/vendor/nozavroni/csvelte/src/CSVelte/Taster.php on line 828 PHP Warning: preg_match() expects at least 2 parameters, 1 given in /Users/luke/PhpstormProjects/testcsv/vendor/nozavroni/csvelte/src/CSVelte/Taster.php on line 828

Warning: preg_match() expects at least 2 parameters, 1 given in /Users/luke/PhpstormProjects/testcsv/vendor/nozavroni/csvelte/src/CSVelte/Taster.php on line 828 array(3) { [2]=> array(9) { ["Sentence"]=> string(14) "this is a test" ["Email"]=> string(23) "thisisanemail@gmail.com" ["SomeText"]=> string(8) "not this" ["Five Digits"]=> string(6) "049458" ["Some more text"]=> string(0) "" ["And more text"]=> string(0) "" ["Question"]=> string(14) "What happened?" ["Description"]=> string(105) "This has to have quotes because it contains the delimiter, as well as some, other, crap

like line breaks" ["DateColumn"]=> string(20) "2020-04-23T00:00:01Z" } [3]=> array(9) { ["Sentence"]=> string(26) "I suppose we will find out" ["Email"]=> string(38) " bunch-of-extraspace@example.com" ["SomeText"]=> string(19) " this is some text" ["Five Digits"]=> string(5) "59487" ["Some more text"]=>