misskey/packages/backend/src/misc/emoji-regex.ts

4 lines
138 B
TypeScript
Raw Normal View History

const twemojiRegex = require('twemoji-parser/dist/lib/regex').default;
export const emojiRegex = new RegExp(`(${twemojiRegex.source})`);