mirror of
https://github.com/Vendicated/Vencord.git
synced 2024-09-20 06:30:35 +00:00
Update src/plugins/emoteCloner/index.tsx
Co-authored-by: Drew <84212701+MrDiamondDog@users.noreply.github.com>
This commit is contained in:
parent
9c819e83b3
commit
8e649cfcc4
1 changed files with 1 additions and 3 deletions
|
@ -363,9 +363,7 @@ const expressionPickerPatch: NavContextMenuPatchCallback = (children, props: { t
|
||||||
function imageContextPatch(c, p: {
|
function imageContextPatch(c, p: {
|
||||||
src: string
|
src: string
|
||||||
}){
|
}){
|
||||||
if ("src" in p
|
if ("src" in p && /https:\/\/cdn\.discordapp\.com\/emojis\/(\d+)\.[a-zA-Z]{3,4}.*/gm.test(p.src)) {
|
||||||
&& /https:\/\/cdn\.discordapp\.com\/emojis\/(\d+)\.[a-zA-Z]{3,4}.*/gm.test(p.src)
|
|
||||||
){
|
|
||||||
const matches = [...p.src.matchAll(/https:\/\/cdn\.discordapp\.com\/emojis\/(\d+)\.[a-zA-Z]{3,4}.*/gm)];
|
const matches = [...p.src.matchAll(/https:\/\/cdn\.discordapp\.com\/emojis\/(\d+)\.[a-zA-Z]{3,4}.*/gm)];
|
||||||
if (!matches) return;
|
if (!matches) return;
|
||||||
c.push(buildMenuItem("Emoji", () => ({
|
c.push(buildMenuItem("Emoji", () => ({
|
||||||
|
|
Loading…
Reference in a new issue