We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bb0b84 commit f641215Copy full SHA for f641215
src/api/util/handlers/Message.ts
@@ -56,7 +56,7 @@ const allow_empty = false;
56
// TODO: check webhook, application, system author, stickers
57
// TODO: embed gifs/videos/images
58
59
-const LINK_REGEX = /<?https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)>?/g;
+const LINK_REGEX = /<?https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&/=]*)>?/g;
60
61
export async function handleMessage(opts: MessageOptions): Promise<Message> {
62
const channel = await Channel.findOneOrFail({
0 commit comments