mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-24 21:19:07 +01: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>
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})$`);
|