Commits

Hans van der Weij committed 4bef63c

Fix issue 29 - Mistake in regular expression

  • Participants
  • Parent commits a3fb330

Comments (0)

Files changed (1)

       $month = $m[2];
       $day = $m[3];
       $gotit = true;
-    } elseif (preg_match('/^([0-9]+)[-/]([0-9]+)[-/]([0-9]+)$/', $datestr, $m)) {
+    } elseif (preg_match('/^([0-9]+)[-\/]([0-9]+)[-\/]([0-9]+)$/', $datestr, $m)) {
       # American Style
       $year = $m[3];
       $month = $m[1];