rtfeldman / elm-validate

Convenience functions for validating Elm data.
http://package.elm-lang.org/packages/rtfeldman/elm-validate/latest
BSD 3-Clause "New" or "Revised" License
145 stars 28 forks source link

Explicitly enumerate the whitespace characters #25

Closed rtfeldman closed 6 years ago

rtfeldman commented 6 years ago

I don't want this library to depend on Regex anymore. Once an Email validation Parser exists, I want to switch to that!

In preparation for that, I don't want the whitespace checker to depend on Regex anymore either. Instead, this change has it explicitly enumerate in the docs what characters it considers whitespace, and check for them using plain old String.uncons.