mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-23 10:27:28 -07:00
b1e3c2e1c7
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>
5 lines
241 B
TypeScript
5 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})$`);
|