Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
fix: support capitalized github keywords (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersDJohnson authored Feb 3, 2021
1 parent 992f046 commit b94266c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ fixes #14
fixed #15
resolve #1
resolves #13
Resolves #16
resolved #20
resolves super/duper/#10
resolved super/duper/#11
Expand Down Expand Up @@ -118,6 +119,12 @@ describe('github finder', () => {
issueNumber: '15',
name: '15',
},
{
fullLinkedUrl: 'https://github.com/test_owner/test_repo/issues/16',
project: 'test_owner/test_repo',
issueNumber: '16',
name: '16',
},
{
fullLinkedUrl: 'https://github.com/test_owner/test_repo/issues/20',
project: 'test_owner/test_repo',
Expand Down
2 changes: 1 addition & 1 deletion src/utils/ticketFinder/finders/github/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const OWNER_PROJECT = /https:\/\/(?:www.git|git).*\.com\/(.+)?\/.+\/\d+$/;
const GITHUB_URL_REGEX = new RegExp(GITHUB_QUALIFIED_URL, 'gm');
const GITHUB_URL_NUMBER_REGEX = new RegExp(GITHUB_QUALIFIED_NUMBER_URL, 'gm');
const GITHUB_PROJECT_REGEX = new RegExp(OWNER_PROJECT, 'gm');
const GITHUB_CLOSE_REGEX = new RegExp(CLOSE_ISSUE_SYNTAX, 'gm');
const GITHUB_CLOSE_REGEX = new RegExp(CLOSE_ISSUE_SYNTAX, 'gmi');
const GITHUB_CLOSE_NUMBER_REGEX = new RegExp(CLOSE_SYNTAX_NUMBER, 'gm');
const GITHUB_CLOSE_PROJECT_REGEX = new RegExp(CLOSE_SYNTAX_PROJECT, 'gm');

Expand Down

0 comments on commit b94266c

Please sign in to comment.