tiny insignificant bugfix

This commit is contained in:
wareya committed 2019-05-02 09:36:36 -04:00
1 parent de52468e51
commit 8e7772ad5c
1 file changed
+5 -3
+5 -3
View File
@@ -1504,9 +1504,11 @@ function grab_more_text(textNode, selection, direction = 1)
let text = "";
let current_node = textNode;
let iters = 0;
while(text.length < settings.contextlength
&& (ignore_normal_boundaries
|| (!text.includes("。") && !text.includes("!") && !text.includes("‼") && !text.includes("?") && !text.includes("??") && !text.includes("…") && (!text.includes("\n") || settings.ignore_linebreaks))))
while(ignore_normal_boundaries
|| (text.length < settings.contextlength
&& (!text.includes("。") && !text.includes("!") && !text.includes("‼") && !text.includes("?") && !text.includes("??") && !text.includes("…") && (!text.includes("\n") || settings.ignore_linebreaks))
)
)
{
iters += 1;
if(current_node == undefined) break;