UNPKG
@2toad/profanity
Version:
latest (3.2.0)
3.2.0
3.1.1
3.0.1
3.0.0
2.5.0
2.4.2
2.4.1
2.4.0
2.3.1
2.3.0
2.2.0
2.1.0
2.0.2
2.0.1
2.0.0
1.4.1
1.4.0
1.3.1
1.3.0
1.2.0
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0
A JavaScript profanity filter
github.com/2Toad/Profanity
2Toad/Profanity
@2toad/profanity
/
dist
/
lookup.d.ts
11 lines
(10 loc)
•
276 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
export
declare
class
Lookup
{
private
regex;
private
words;
private
wholeWord;
constructor
(
wholeWord
:
boolean
);
exists
(
text
:
string
):
boolean
;
removeWords
(
words
:
string
[]):
void
;
addWords
(
words
:
string
[]):
void
;
private
buildRegex; }