blob: 02cf864e8f2cbddda897cc898fe3a85761af8182 (
plain)
1
2
3
4
5
6
7
8
9
10
|
module.exports = (text, li) => {
words = text.split(/[, ]+/);
newwords = [];
words.forEach((word) => {
if (word.trim() != "" && word.length > 3) {
newwords.push(word);
}
})
return newwords;
}
|