1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-10 18:06:22 +00:00

MessageLinkEmbeds: No longer need to reset global regex

This commit is contained in:
Nuckyz 2024-05-19 04:20:27 -03:00 committed by Luna
parent bca8c0ba8b
commit 6540f05283

View file

@ -376,9 +376,6 @@ export default definePlugin({
if (!messageLinkRegex.test(props.message.content)) if (!messageLinkRegex.test(props.message.content))
return null; return null;
// need to reset the regex because it's global
messageLinkRegex.lastIndex = 0;
return ( return (
<ErrorBoundary> <ErrorBoundary>
<MessageEmbedAccessory <MessageEmbedAccessory