summaryrefslogtreecommitdiff
path: root/ext/js/language/text-scanner.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2024-02-02 21:56:59 -0500
committerGitHub <noreply@github.com>2024-02-03 02:56:59 +0000
commit17ffea6cb907c12c1af47d3f6f27126f126b168f (patch)
tree2c350b999c7271387ac3466583f71411f6be13c9 /ext/js/language/text-scanner.js
parentc4f248b0f95050fb373c898289b506d042a3731b (diff)
Text source generator function move (#611)
* Move functionality into TextSourceGenerator * Move extractSentence * Move isWhitespace
Diffstat (limited to 'ext/js/language/text-scanner.js')
-rw-r--r--ext/js/language/text-scanner.js4
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,