summaryrefslogtreecommitdiff
path: root/ext/js/language/text-scanner.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/language/text-scanner.js')
-rw-r--r--ext/js/language/text-scanner.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/language/text-scanner.js b/ext/js/language/text-scanner.js
index 0270a025..aba44644 100644
--- a/ext/js/language/text-scanner.js
+++ b/ext/js/language/text-scanner.js
@@ -1619,7 +1619,7 @@ export class TextScanner extends EventDispatcher {
*/
async _isTextLookupWorthy(text) {
try {
- return this._language !== null && await this._api.isTextLookupWorthy(text, this._language);
+ return this._language !== null && text.length > 0 && await this._api.isTextLookupWorthy(text, this._language);
} catch (e) {
return false;
}