We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 182269f commit 623af67Copy full SHA for 623af67
extension/src/experiments/model/collect.ts
@@ -112,9 +112,7 @@ const collectCommitData = (
112
acc: { [sha: string]: CommitData },
113
commit: string
114
) => {
115
- const [sha, author, date, refNamesWithKey] = commit
116
- .split('\n')
117
- .filter(Boolean)
+ const [sha, author, date, refNamesWithKey] = trimAndSplit(commit)
118
119
if (!sha) {
120
return
@@ -150,7 +148,7 @@ const formatCommitMessage = (commit: string | undefined) => {
150
148
if (!commit) {
151
149
return undefined
152
}
153
- const lines = commit.split('\n').filter(Boolean)
+ const lines = trimAndSplit(commit)
154
return `${lines[0]}${lines.length > 1 ? ' ...' : ''}`
155
156
0 commit comments