UNPKG

@dwcks/bad-word-filter-vi-en

Version:

Thư viện lọc từ xấu tiếng Việt và tiếng Anh

12 lines (11 loc) 360 B
export declare class BadWordFilter { private badWords; private regex; private constructor(); static create(badWordsOrFilePath?: string[] | string): Promise<BadWordFilter>; private escapeRegex; private normalizeText; private buildRegex; hasBadWord(comment: string): boolean; filter(comment: string, mask?: string): string; }