diff --git a/build/service/Tesseract.php b/build/service/Tesseract.php index 5741d0d..1b2c81e 100755 --- a/build/service/Tesseract.php +++ b/build/service/Tesseract.php @@ -91,7 +91,7 @@ // S... OR 5... // - if( preg_match('@^[S|5] ?(\d+)@i', $lines[$i], $m) ) // 'S10', 'S22' + if( preg_match('@^[S|5] ?(.+)@i', $lines[$i], $m) ) // 'S10', 'S22' return [ $title, "S. ${m[1]}" ]; // If not 'Cours', 'CTD', 'TD', 'TP' //