diff options
Diffstat (limited to 'ext/js/language')
-rw-r--r-- | ext/js/language/text-scanner.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/language/text-scanner.js b/ext/js/language/text-scanner.js index 5b125063..811c7987 100644 --- a/ext/js/language/text-scanner.js +++ b/ext/js/language/text-scanner.js @@ -1197,7 +1197,7 @@ export class TextScanner extends EventDispatcher { if (dictionaryEntries.length === 0) { return null; } textSource.setEndOffset(originalTextLength, false, layoutAwareScan); - const sentence = DocumentUtil.extractSentence( + const sentence = this._textSourceGenerator.extractSentence( textSource, layoutAwareScan, sentenceScanExtent, @@ -1229,7 +1229,7 @@ export class TextScanner extends EventDispatcher { if (dictionaryEntries.length === 0) { return null; } textSource.setEndOffset(1, false, layoutAwareScan); - const sentence = DocumentUtil.extractSentence( + const sentence = this._textSourceGenerator.extractSentence( textSource, layoutAwareScan, sentenceScanExtent, |