You are viewing a single comment's thread. Return to all comments →
const getProcessedText = () => { if (!omitWords) return inputText; // return inputText.split(" ").filter(char => !OMITTED_WORDS.includes(char)).join(" "); // Using regex let regex = new RegExp('\\b(' + OMITTED_WORDS.join('|') + ')\\b', 'g'); return inputText.replace(regex, "").replace(/\s+/g, ' '); };
Seems like cookies are disabled on this browser, please enable them to open this website
Word Omitter
You are viewing a single comment's thread. Return to all comments →