MessageLinkEmbeds: No longer need to reset global regex

main
Nuckyz 4 months ago
parent b33b5bdc9f
commit a94b88cd56
No known key found for this signature in database
GPG Key ID: 440BF8296E1C4AD9

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

Loading…
Cancel
Save