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 a1da916 commit b99a9daCopy full SHA for b99a9da
src/git/parsers/logParser.ts
@@ -665,16 +665,15 @@ export function parseGitLog(
665
line = next.value;
666
if (line === '</s>') break;
667
668
- if (entry.summary === undefined) {
+ if (entry.summary == null) {
669
entry.summary = line;
670
} else {
671
entry.summary += `\n${line}`;
672
}
673
674
675
- // Remove the trailing newline
676
- if (entry.summary != null && entry.summary.charCodeAt(entry.summary.length - 1) === 10) {
677
- entry.summary = entry.summary.slice(0, -1);
+ if (entry.summary != null) {
+ entry.summary = entry.summary.trim();
678
679
break;
680
0 commit comments