obscenity / MatchPayload
Information emitted on a successful match.
If you require more information about matches than what is provided here, see the [[DataSet]] class, which supports associating metadata with patterns.
• endIndex: number
End index of the match, inclusive.
If the last character of the pattern is a surrogate pair, then this points to the index of the low surrogate.
src/matcher/MatchPayload.ts:16
• matchLength: number
Total number of of code points that matched.
src/matcher/MatchPayload.ts:21
• startIndex: number
Start index of the match, inclusive.
src/matcher/MatchPayload.ts:26
• termId: number
ID of the blacklisted term that matched.