Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
hexcode?: string;
shortcode?: string;
unicode?: string;
}
export interface EmojiMatcherOptions {
convertEmoticon?: boolean;
convertShortcode?: boolean;
convertUnicode?: boolean;
enlargeThreshold?: number;
renderUnicode?: boolean;
}
const EMOTICON_BOUNDARY_REGEX = new RegExp(
// eslint-disable-next-line no-useless-escape
`(^|\\\b|\\\s)(${EMOTICON_REGEX.source})(?=\\\s|\\\b|$)`,
);
export default class EmojiMatcher extends Matcher {
data: EmojiDataManager | null = null;
greedy: boolean = true;
constructor(
name: string,
options?: EmojiMatcherOptions,
factory?: React.ComponentType | null,
) {
super(
name,
{
convertEmoticon: false,