Commit 1f0e5c7d47dbc1cb33d1671384ae1aa26cc5ff5e

Authored by Myriam Bouchemit
2 parents 38170a0a bea3673d

Merge branch 'master' of https://gitlab.irap.omp.eu/CDPP/AMDA_IHM

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
php/classes/TimeTableMgr.php
... ... @@ -333,10 +333,11 @@ class TimeTableMgr extends AmdaObjectMgr
333 333 $descNumber = 0;
334 334  
335 335 foreach ($lines as $line) {
336   - $line = preg_replace('/[-:\/\s]+/', ' ', trim($line));
  336 + $line = trim($line);
337 337 if ($line[0] == '#') { // Comment
338 338 $description = $description . PHP_EOL . substr($line, 1, -1);
339 339 } else {
  340 + $line = preg_replace('/[-:\/T\s]+/', ' ', $line);
340 341 $isoFormat = 'Y-m-dTH:i:s';
341 342 $doyFormat = 'Y z H i s';
342 343 $doyRegex = '(\d{4}) (\d{3}) (\d{2}) (\d{2}) (\d{2})( \d{2})?';
... ...