diff --git a/Crontab.php b/Crontab.php index ebdf0bb..4847c43 100644 --- a/Crontab.php +++ b/Crontab.php @@ -369,7 +369,7 @@ public function getCommand() */ static function parseFromCommand($command) { - $vars = preg_split("[ \t]",ltrim($command, " \t"), 6); + $vars = preg_split("/[ \t]/",ltrim($command, " \t"), 6); if(count($vars) < 5) return false; @@ -500,7 +500,7 @@ public function getCommand() */ static function parseFromCommand($command) { - $vars = preg_split("[ \t]",ltrim($command, " \t"), 6); + $vars = preg_split("/[ \t]/",ltrim($command, " \t"), 6); if(count($vars) < 5) return false; @@ -532,7 +532,7 @@ static function parseFromCommand($command) */ static function isApplicationJob($line) { - $vars = preg_split("[ \t]",ltrim(ltrim($line), "\t"), 6); + $vars = preg_split("/[ \t]/",ltrim(ltrim($line), "\t"), 6); if(count($vars) < 5) return false;