CharacterSetSpecification.decimalDigitCharacterSet() not allowing decimal
justdan0227 opened this issue · 1 comments
justdan0227 commented
instance.value = "999.1"
instance.validate(CharacterSetSpecification.decimalDigitCharacterSet(), message: "Must be digits")
is not allowing decimal
justdan0227 commented
Oops. my bad.. have to use
instance.validate(CharacterSetSpecification.charactersInString("0123456789."),
message: "Must be digits")