Skip to content

Commit 3602563

Browse files
committed
Fix bug with too-long substrings
1 parent d41ad26 commit 3602563

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/LfMerge.Core/Reporting/ConversionError.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ public string MongoId() {
118118
}
119119

120120
public string Label() {
121-
if (Comment == null || Comment.Content == null) return string.Empty;
121+
if (Comment == null || String.IsNullOrEmpty(Comment.Content)) return string.Empty;
122+
if (Comment.Content.Length < 100) return Comment.Content;
122123
return Comment.Content.Substring(0, 100);
123124
}
124125
}

0 commit comments

Comments
 (0)