From 492f6b9cdffb9323b2dd4e74880a7d68944a8c66 Mon Sep 17 00:00:00 2001 From: Joseph T Lyons Date: Sun, 11 Aug 2024 14:40:27 -0400 Subject: [PATCH] Update issue-detection RegEx --- script/danger/dangerfile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/danger/dangerfile.ts b/script/danger/dangerfile.ts index 8ff691774d..3c64c457ac 100644 --- a/script/danger/dangerfile.ts +++ b/script/danger/dangerfile.ts @@ -37,7 +37,7 @@ if (!hasReleaseNotes) { } const ISSUE_LINK_PATTERN = new RegExp( - "(?:^|\\s)(?:#(\\d+)|https:\\/\\/github\\.com\\/zed-industries\\/zed\\/issues\\/(\\d+))", + "(?:https://github\\.com/[\\w-]+/[\\w-]+/issues/\\d+|#\\d+)", "g", );