diff --git a/Sources/apk/Index/ApkRawIndex.swift b/Sources/apk/Index/ApkRawIndex.swift index 262f5c2..c20a7e3 100644 --- a/Sources/apk/Index/ApkRawIndex.swift +++ b/Sources/apk/Index/ApkRawIndex.swift @@ -15,7 +15,7 @@ struct ApkRawIndex { recordLines.reserveCapacity(15) for line in lines { - if line.trimmingCharacters(in: .whitespaces).isEmpty { + if line.isEmpty || line.allSatisfy(\.isWhitespace) { if !recordLines.isEmpty { packages.append(try .init(parsingEntryLines: recordLines)) recordLines.removeAll(keepingCapacity: true)