Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import EmailFactory from './factories/Email';
import UrlFactory from './factories/Url';
import transformer from './factories/transformer';
export const globalMatchers: MatcherInterface<{}>[] = [];
export const globalFilters: FilterInterface[] = [];
const emojiOptions = {
convertEmoticon: false,
convertShortcode: true,
convertUnicode: true,
enlargeThreshold: 3,
};
export const urlMatcher = new UrlMatcher(
'url',
{
customTLDs: ['tools'],
},
UrlFactory,
);
export const emailMatcher = new EmailMatcher('email', {}, EmailFactory);
export const emojiMatcher = new EmojiMatcher('emoji', emojiOptions);
export const emojiMatcherWithEmoticons = new EmojiMatcher('emoji', {
...emojiOptions,
convertEmoticon: true,
});