Append tags to Pool.secondaryId

This commit is contained in:
Davide De Rosa 2019-04-25 21:25:11 +02:00
parent a12cecb647
commit 990a0f033a
1 changed files with 6 additions and 1 deletions

View File

@ -113,6 +113,11 @@ extension Pool {
if let num = num { if let num = num {
comps.append("#\(num)") comps.append("#\(num)")
} }
return comps.joined(separator: " ") var str = comps.joined(separator: " ")
if let tags = tags {
let suffix = tags.map { $0.uppercased() }.joined(separator: ",")
str = "\(str) (\(suffix))"
}
return str
} }
} }