Skip to content

Commit 1a74ea9

Browse files
authored
Fix Bug in word splitter
1 parent 0cfe388 commit 1a74ea9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WordSplitter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function convertHtmlToListOfWords(text, blockExpressions) {
101101
Utils.isWhiteSpace(state.words[state.words.length - 1])) {
102102
let w1 = state.words[state.words.length - 2];
103103
let w2 = state.words[state.words.length - 1];
104-
state.words.splice(words.length - 2, 2);
104+
state.words.splice(state.words.length - 2, 2);
105105
state.currentWord = [(w1 + w2).split()];
106106
state.mode = Mode.whitespace;
107107
switchToNextMode = false;
@@ -159,4 +159,4 @@ function findBlocks(text, blockExpressions) {
159159
return blockLocations;
160160
}
161161

162-
export { convertHtmlToListOfWords };
162+
export { convertHtmlToListOfWords };

0 commit comments

Comments
 (0)