Skip to content

Commit 83b2a56

Browse files
elaborate a bit more on why we cannot omit empty subsequences when splitting the prerelease into identifiers
Co-authored-by: David Rönnqvist <[email protected]>
1 parent 4e906b9 commit 83b2a56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SymbolKit/SymbolGraph/SemanticVersion/Prerelease.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ extension SymbolGraph.SemanticVersion.Prerelease {
4242
}
4343
let identifiers = dotSeparatedIdentifiers.split(
4444
separator: ".",
45-
omittingEmptySubsequences: false // must preserve empty identifiers, for accurate diagnostics.
45+
omittingEmptySubsequences: false // Preserve empty sequences to be able to raise validation errors about empty prerelease identifiers.
4646
)
4747
try self.init(identifiers)
4848
}

0 commit comments

Comments
 (0)