1
0
Fork 0

Merge pull request #4117 from stof/patch-1

Optimize the regex detecting timestamps
pull/4220/merge
Nils Adermann 2015-07-09 21:17:24 +02:00
commit de65199f31
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ class ArrayLoader implements LoaderInterface
}
if (!empty($config['time'])) {
$time = preg_match('/^\d+$/D', $config['time']) ? '@'.$config['time'] : $config['time'];
$time = preg_match('/^\d++$/D', $config['time']) ? '@'.$config['time'] : $config['time'];
try {
$date = new \DateTime($time, new \DateTimeZone('UTC'));