MessageLinkEmbeds: No longer need to reset global regex

This commit is contained in:
Nuckyz 2024-05-19 04:20:27 -03:00
parent b33b5bdc9f
commit a94b88cd56
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

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