diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2024-02-02 21:56:59 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-03 02:56:59 +0000 |
commit | 17ffea6cb907c12c1af47d3f6f27126f126b168f (patch) | |
tree | 2c350b999c7271387ac3466583f71411f6be13c9 /ext/js/language/text-scanner.js | |
parent | c4f248b0f95050fb373c898289b506d042a3731b (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.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, |