[skip ci] Update Monaco; Fix code scanning errors

This commit is contained in:
Vendicated 2023-04-29 04:16:28 +02:00
parent a2e03084b0
commit bf795c49df
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905
4 changed files with 63 additions and 47 deletions

View file

@ -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;