Skip to content

Commit e2dd111

Browse files
committed
fix github regex
1 parent 751a65c commit e2dd111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/services/discord/modules/webhook-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export default async (bot: DiscordBot): Promise<void> => {
198198
// what could go wrong
199199
if (url.startsWith("https://github.com")) {
200200
const [, owner, repo, ref] =
201-
/https?:\/\/github\.com\/(?<owner>\S+)\/(?<repo>\S+)\/(?<sha>\S+)/.exec(
201+
/https?:\/\/github\.com\/(?<owner>\S+)\/(?<repo>\S+)\/commit\/(?<sha>\S+)/.exec(
202202
url ?? ""
203203
) || [];
204204
try {

0 commit comments

Comments
 (0)