MessageLinkEmbeds: No longer need to reset global regex
This commit is contained in:
parent
b33b5bdc9f
commit
a94b88cd56
1 changed files with 0 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue