717aa899b1
This commit adds (maybe unstable) support for Mastodons v1 api also some v2 endpoints, maybe I miss stuff, I dont know. We will need to test this but it should be kinda stable and work like (old) butter. Co-authored-by: Natty <natty.sh.git@gmail.com> Co-authored-by: cutls <web-pro@cutls.com>
6 lines
241 B
TypeScript
6 lines
241 B
TypeScript
import twemoji from "twemoji-parser/dist/lib/regex.js";
|
|
const twemojiRegex = twemoji.default;
|
|
|
|
export const emojiRegex = new RegExp(`(${twemojiRegex.source})`);
|
|
export const emojiRegexAtStartToEnd = new RegExp(`^(${twemojiRegex.source})$`);
|