make strip spaces option also strip fullwidth spaces

This commit is contained in:
wareya committed 2020-01-14 01:24:40 -05:00
1 parent 0a549dfe96
commit 8814bf4b10
1 file changed
+2 -2
+2 -2
View File
@@ -1831,8 +1831,8 @@ function grab_text(textNode, offset, elemental)
if(settings.strip_spaces)
{
text = text.replace(/ /g, "");
moreText = moreText.replace(/ /g, "");
text = text.replace(/  /g, "");
moreText = moreText.replace(/  /g, "");
}
let index = moreText.lastIndexOf(text);