diff options
author | Vendicated <vendicated@riseup.net> | 2023-04-29 04:16:28 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2023-04-29 04:16:28 +0200 |
commit | bf795c49dfe988f3013cda35cfe18e124456f23f (patch) | |
tree | 9831e84cd64d69f2e65a84c49ff508fc7089e180 /src/plugins/messageLinkEmbeds.tsx | |
parent | a2e03084b001a154bf1b33b213480028bb2d4e59 (diff) | |
download | Vencord-bf795c49dfe988f3013cda35cfe18e124456f23f.tar.gz Vencord-bf795c49dfe988f3013cda35cfe18e124456f23f.tar.bz2 Vencord-bf795c49dfe988f3013cda35cfe18e124456f23f.zip |
[skip ci] Update Monaco; Fix code scanning errors
Diffstat (limited to 'src/plugins/messageLinkEmbeds.tsx')
-rw-r--r-- | src/plugins/messageLinkEmbeds.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/messageLinkEmbeds.tsx b/src/plugins/messageLinkEmbeds.tsx index e3a28a7..951835a 100644 --- a/src/plugins/messageLinkEmbeds.tsx +++ b/src/plugins/messageLinkEmbeds.tsx @@ -51,7 +51,7 @@ const SearchResultClasses = findByPropsLazy("message", "searchResult"); let AutoModEmbed: React.ComponentType<any> = () => null; const messageLinkRegex = /(?<!<)https?:\/\/(?:\w+\.)?discord(?:app)?\.com\/channels\/(\d{17,20}|@me)\/(\d{17,20})\/(\d{17,20})/g; -const tenorRegex = /https:\/\/(?:www.)?tenor\.com/; +const tenorRegex = /^https:\/\/(?:www\.)?tenor\.com\//; interface Attachment { height: number; |