Skip to content

Commit c37c596

Browse files
fix newline matching
1 parent 131c811 commit c37c596

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SourceKitLSP/Swift/DoccDocumentation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ fileprivate struct DocumentableSymbol {
122122
case .docBlockComment(let comment):
123123
return comment.dropFirst(3)
124124
.dropLast(2)
125-
.split(separator: "\n")
125+
.split(whereSeparator: \.isNewline)
126126
.map { String($0).trimmingCharacters(in: .whitespaces) }
127127
default:
128128
return []

0 commit comments

Comments
 (0)