Tesseract now accepts 'S10' but also 'S blabla blabla'

This commit is contained in:
xdrm-brackets 2017-09-15 18:55:59 +02:00
parent 62cb7facea
commit 5e2bd71411
1 changed files with 1 additions and 1 deletions

View File

@ -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' //