From 5e2bd7141196afce3dd4a1bff2c920033dce6bbc Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 15 Sep 2017 18:55:59 +0200 Subject: [PATCH] Tesseract now accepts 'S10' but also 'S blabla blabla' --- build/service/Tesseract.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' //