Closed sleepycat closed 7 years ago
The generatePhrases function was checking for '' and ' ' but not '\n'. Input text containing new lines would find their way into the phrase list and then blow up in calculateKeywordScores when word_list.length was called. The error was:
TypeError: Cannot read property 'length' of null
The generatePhrases function was checking for '' and ' ' but not '\n'. Input text containing new lines would find their way into the phrase list and then blow up in calculateKeywordScores when word_list.length was called. The error was: