UNPKG

@2toad/profanity

Version:

A JavaScript profanity filter

11 lines (10 loc) 276 B
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; }