diff --git a/github/.gitignore b/github/.gitignore index f6176c7..14c36dc 100644 --- a/github/.gitignore +++ b/github/.gitignore @@ -1,4 +1,4 @@ .DS_store/ -.gasp.json +.clasp.json dist node_modules/ diff --git a/github/src/MessageUtils.js b/github/src/MessageUtils.js index 76d638e..a7a6b40 100644 --- a/github/src/MessageUtils.js +++ b/github/src/MessageUtils.js @@ -58,7 +58,7 @@ function extractGitHubLinks(messageBodies) { * @return {GitHubLink[]} extracted link information, empty array if none found. */ function extractGitHubLinksFromText_(text, appendTo) { - var re = /https:\/\/github.com\/(.+?)(?)(.+?)(?)(issues|pull)(?)(\d+)/gi; + var re = /https:\/\/github.com\/([^\/]+?)\/([^\/]+?)\/(issues|pull)\/(\d+)/gi; while ((match = re.exec(text)) !== null) { var type = stripHtmlTags(match[3]); appendTo.push({