Method | Description | |
---|---|---|
Censor ( IEnumerable |
Initializes a new instance of the Censored.Censor class.
|
|
CensorText ( string text ) : string |
Censors the text and replaces dirty words with ****
|
|
HasCensoredWord ( string text ) : bool |
Determines whether the text is dirty (has a bad word in it).
|
Method | Description | |
---|---|---|
StarCensoredMatch ( |
||
ToRegexPattern ( string wildcardSearch ) : string |
public Censor ( IEnumerable |
||
censoredWords | IEnumerable |
Censored words, if null uses default list |
return | System |
public CensorText ( string text ) : string | ||
text | string | Text to censor |
return | string |
public HasCensoredWord ( string text ) : bool | ||
text | string | Text to check for dirty words. |
return | bool |