News for hackers. Stuff that matters.
Re:Show HN: No-swears – remove swear words from JavaScript s... by nukeop on Wednesday January 03, 2018 @04:15AM (#16059598)
Could be interesting to include an optional argument callback that would receive the part of the string that's being censored and returns a string to replace that part of the word with - so that you can conditionally prevent censorship or censor it with something else than *.
Re:Show HN: No-swears – remove swear words from JavaScript s... by ateesdalejr on Thursday January 04, 2018 @03:44PM (#16073908)
You mean change it to a less offensive word? That would actually be interesting.