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 c334123
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/conventional-commits-parser/src/CommitParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ export class CommitParser {
break
}

const indexOfAnchorUrl = matches.findIndex(element => element.includes('http') && element.includes('#'))

if (indexOfAnchorUrl > -1) {
matches.splice(indexOfAnchorUrl)
}

action = matches[1] || null
sentence = matches[2] || ''

Expand Down

0 comments on commit c334123

Please sign in to comment.