Skip to content

Commit f641215

Browse files
remove duplicate / in url regex
1 parent 8bb0b84 commit f641215

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/util/handlers/Message.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const allow_empty = false;
5656
// TODO: check webhook, application, system author, stickers
5757
// TODO: embed gifs/videos/images
5858

59-
const LINK_REGEX = /<?https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)>?/g;
59+
const LINK_REGEX = /<?https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&/=]*)>?/g;
6060

6161
export async function handleMessage(opts: MessageOptions): Promise<Message> {
6262
const channel = await Channel.findOneOrFail({

0 commit comments

Comments
 (0)