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.
isAllowedInSemanticVersionIdentifier
1 parent 4e2b309 commit b5f7003Copy full SHA for b5f7003
Sources/SymbolKit/SymbolGraph/SemanticVersion/SemanticVersion.swift
@@ -51,7 +51,7 @@ extension SymbolGraph {
51
throw SymbolGraph.SemanticVersionError.emptyIdentifier(position: .buildMetadata)
52
}
53
try buildMetadataIdentifiers.forEach {
54
- guard $0.allSatisfy( { $0.isASCII && ( $0.isLetter || $0.isNumber || $0 == "-" ) } ) else {
+ guard $0.allSatisfy(\.isAllowedInSemanticVersionIdentifier) else {
55
throw SymbolGraph.SemanticVersionError.invalidCharacterInIdentifier($0, position: .buildMetadata)
56
57
0 commit comments