diff --git a/Sources/SymbolKit/SymbolGraph/SemanticVersion/SemanticVersion.swift b/Sources/SymbolKit/SymbolGraph/SemanticVersion/SemanticVersion.swift index 5d3ad4e..0acc2b0 100644 --- a/Sources/SymbolKit/SymbolGraph/SemanticVersion/SemanticVersion.swift +++ b/Sources/SymbolKit/SymbolGraph/SemanticVersion/SemanticVersion.swift @@ -51,7 +51,7 @@ extension SymbolGraph { throw SymbolGraph.SemanticVersionError.emptyIdentifier(position: .buildMetadata) } try buildMetadataIdentifiers.forEach { - guard $0.allSatisfy( { $0.isASCII && ( $0.isLetter || $0.isNumber || $0 == "-" ) } ) else { + guard $0.allSatisfy( { $0.isAllowedInSemanticVersionIdentifier } ) else { throw SymbolGraph.SemanticVersionError.invalidCharacterInIdentifier($0, position: .buildMetadata) } }