From d08ac24b82c2019a2a3e4fc5f0c03a05c6f899ea Mon Sep 17 00:00:00 2001 From: Guillermo Date: Sat, 22 Oct 2016 11:46:32 -0400 Subject: [PATCH] add back lang string as a valid option --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index 86da1b1..5df0284 100644 --- a/src/index.js +++ b/src/index.js @@ -17,6 +17,7 @@ class TesseractWorker { recognize(image, options = {}){ return this._delay(job => { + if (typeof options === 'string') options = {lang: options} options.lang = options.lang || 'eng'; job._send('recognize', { image, options, workerOptions: this.workerOptions });