Replace : and / correctly.

This commit is contained in:
Damiano Galassi committed 2017-12-11 12:24:48 +01:00
1 parent 477ffe293a
commit 89f7c558e0
1 file changed
+1 -1
+1 -1
View File
@@ -103,7 +103,7 @@ extension MP42File {
}
}
name = name.trimmingCharacters(in: CharacterSet(charactersIn: ":/")).condensingWhitespace()
name = name.replacingOccurrences(of: ":", with: "").replacingOccurrences(of: "/", with: "-").condensingWhitespace()
return name.isEmpty ? nil : name
}