Skip to content

Commit

Permalink
fix: make regex more inclusive and future proof
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Owsiak committed Oct 4, 2018
1 parent 983e7f5 commit 85bd9d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/git/commits.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function parseCommit(commit) {
const parentSha = meta.shift() || null;

const data = commitParser.sync(message, {
issuePrefixes: ['#', 'https?://[a-zA-Z\\./-]*'],
issuePrefixes: ['#', 'https?://[\\w\\.-/]*[-/]+'],
});
const prMatch = message.match(PR_MERGE_PATTERN);
if (prMatch) {
Expand Down

0 comments on commit 85bd9d1

Please sign in to comment.