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 83b2a56 commit 5afa8f1Copy full SHA for 5afa8f1
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( { $0.isAllowedInSemanticVersionIdentifier } ) else {
55
throw SymbolGraph.SemanticVersionError.invalidCharacterInIdentifier($0, position: .buildMetadata)
56
57
0 commit comments