Skip to content

Commit

Permalink
fix: handle recent messages spawning multiple lines in subject provider
Browse files Browse the repository at this point in the history
  • Loading branch information
lppedd committed Oct 2, 2020
1 parent a12c76a commit 76d5cd6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ private class DefaultVcsCommitSubjectProvider(private val project: Project) : Co
.asReversed()
.asSequence()
.take(30)
.map { it.lines().first(String::isNotBlank) }
.map(CCParser::parseHeader)
.map(CommitTokens::subject)
.filterIsInstance<ValidToken>()
Expand Down

0 comments on commit 76d5cd6

Please sign in to comment.