diff --git a/src/run.js b/src/run.js index c160089..3adccd5 100644 --- a/src/run.js +++ b/src/run.js @@ -94,6 +94,14 @@ export async function run() { } const commentParams = commentUrlParamsRegex.exec(subjectUrl); + console.debug( + "Extracting groups", + commentParams, + "from url", + subjectUrl, + "using regex", + commentUrlParamsRegex + ); return octokit.issues.createComment({ ...commentParams.groups, diff --git a/src/utils/utils.js b/src/utils/utils.js index 34d1ba4..cdc2b52 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -17,5 +17,5 @@ export function isBot(commentData) { export const commentUrlParamsRegex = new RegExp( // Otherwise, the escape characters are removed from the expression. // eslint-disable-next-line prettier/prettier, no-useless-escape - "(?:https:\/\/)(?:api\.github\.com)\/(?:repos)\/(?[\\w-]+)\/(?[\\w-]+)\/(?:issues)\/(?[0-9]+)" + "(?:https:\/\/)(?:api\.github\.com)\/(?:repos)\/(?[\\w.-]+)\/(?[\\w.-]+)\/(?:issues)\/(?[0-9]+)" );