We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8550b61 commit d885fc8Copy full SHA for d885fc8
1 file changed
Sources/String+Math.swift
@@ -11,7 +11,7 @@ internal extension String {
11
internal var floatArray: [Float] {
12
let ignoredCharacters = CharacterSet(charactersIn: "{} ,")
13
let components = self.components(separatedBy: ignoredCharacters)
14
- return components.filter { $0.characters.count > 0 }
+ return components.filter { $0.count > 0 }
15
.map { return Float($0)! }
16
}
17
0 commit comments