Skip to content

Commit

Permalink
Bugfix: Allow + and - as valid numeric characters
Browse files Browse the repository at this point in the history
  • Loading branch information
peterb180369 committed Dec 10, 2019
1 parent e43c6fd commit 5fc599c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BXSwiftUtils/Strings/String+Numeric.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public extension String

func strippingNonNumericCharacters() -> String
{
let numbericCharacters = Set("0123456789.,")
let numbericCharacters = Set("0123456789.,+-")
return self.filter { numbericCharacters.contains($0) }
}

Expand Down

0 comments on commit 5fc599c

Please sign in to comment.