Tesseract now accepts 'S10' but also 'S blabla blabla'
This commit is contained in:
parent
62cb7facea
commit
5e2bd71411
|
@ -91,7 +91,7 @@
|
||||||
|
|
||||||
|
|
||||||
// S... OR 5... //
|
// 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]}" ];
|
return [ $title, "S. ${m[1]}" ];
|
||||||
|
|
||||||
// If not 'Cours', 'CTD', 'TD', 'TP' //
|
// If not 'Cours', 'CTD', 'TD', 'TP' //
|
||||||
|
|
Loading…
Reference in New Issue