From 89bf9722c44887aebf1aaec50a218003e32c8cf0 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 14 Sep 2017 16:29:44 +0200 Subject: [PATCH] No more lightdb:delete v14 --- 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 fa9dc4b..d38d815 100755 --- a/build/service/Tesseract.php +++ b/build/service/Tesseract.php @@ -53,7 +53,7 @@ $read = shell_exec("tesseract ".$this->fname." stdout -l fra --user-words ".__ROOT__."/config/edt.user-words -c language_model_penalty_non_freq_dict_word=0.1 -c language_model_penalty_non_dict_word=.15 -c tessedit_char_whitelist=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 2>/dev/null"); /* (2) If empty */ - if( is_null($read) || !preg_match('@\n@', $read) ) + if( is_null($read) || !preg_match('@\n@g', $read) ) throw new \Exception("Nothing read"); /* (3) Split by lines */