Skip to content

Commit

Permalink
fix(conventional-commits-parser): anchor urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Mersho committed Feb 5, 2024
1 parent ec53674 commit 49e1b2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/conventional-commits-parser/src/regex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function getReferencePartsRegex(

const flags = issuePrefixesCaseSensitive ? 'g' : 'gi'

return new RegExp(`(?:.*?)??\\s*([\\w-\\.\\/]*?)??(${join(issuePrefixes, '|')})([\\w-]*\\d+)`, flags)
return new RegExp(`(?:.*?)??\\s*([\\w-\\.\\/]*?)??(?<!https:\\/\\/[\\w\\.\\/]+)(${join(issuePrefixes, '|')})([\\w-]*\\d+)`, flags)
}

function getReferencesRegex(
Expand Down

0 comments on commit 49e1b2b

Please sign in to comment.