stephenhaunts / ProfanityDetector

This is a simple library for detecting profanities within a text string.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CensorString fails to clean words in multi-line input

kHackett opened this issue · comments

In a multi-line textbox entry, words are missed if they are before or after a \r\n or \n.
Example: only the first word is censored

var output = profanityFilter.CensorString( "fuk fuk\r\nfuk fuk\nfuk", '#');

... and also HTML tags eg: "<b>fuk</b>"