mirror of
https://github.com/Vendicated/Vencord.git
synced 2024-09-19 22:20:34 +00:00
fix regex and remove log
This commit is contained in:
parent
add443e67b
commit
850b940306
1 changed files with 1 additions and 2 deletions
|
@ -363,9 +363,8 @@ const expressionPickerPatch: NavContextMenuPatchCallback = (children, props: { t
|
|||
function imageContextPatch(c, p: {
|
||||
src: string
|
||||
}){
|
||||
console.log("passed", p);
|
||||
if ("src" in p
|
||||
&& /https:\/\/cdn\.discordapp\.com\/emojis\/(\d+)\.(gif|png).*/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+)\.(gif|png).*/gm)];
|
||||
if (!matches) return;
|
||||
|
|
Loading…
Reference in a new issue