words-filter
Version:
sensitive word filter implemented with DFA algorithm
16 lines • 472 B
TypeScript
/// <reference types="node" />
/**
* Created by xiaochuanzhi on 2017/2/19.
*/
import * as fs from "fs";
import HashMap from "hashmap";
export declare class Filter {
_keywordMap: HashMap<string, any>;
_keywords: string[];
_endTag: string;
_symbolReg: RegExp;
constructor(pathLike?: fs.PathLike);
hasKeyword(text: string, rmSymbol?: boolean): boolean;
isKeyword(text: string, rmSymbol?: boolean): boolean;
}
//# sourceMappingURL=filter.d.ts.map