Skip to content

Commit

Permalink
upgrade outdated string api
Browse files Browse the repository at this point in the history
  • Loading branch information
s1ddok committed Mar 17, 2018
1 parent 8550b61 commit d885fc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/String+Math.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ internal extension String {
internal var floatArray: [Float] {
let ignoredCharacters = CharacterSet(charactersIn: "{} ,")
let components = self.components(separatedBy: ignoredCharacters)
return components.filter { $0.characters.count > 0 }
return components.filter { $0.count > 0 }
.map { return Float($0)! }
}
}
Expand Down

0 comments on commit d885fc8

Please sign in to comment.