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

Add a few validators #11

Closed danfishgold closed 6 years ago

danfishgold commented 7 years ago

I don't think these are especially good names, but they are useful functions (at least for me.)

rtfeldman commented 6 years ago

Thanks! I merged https://github.com/rtfeldman/elm-validate/pull/9 which added ifEmptyList.

Now that elm-tools/parser exists as a nicer alternative to regular expressions, I'd rather not couple the public-facing API to Regex. (Internally, though, I'd rather not port that email regex to a Parser... 😅) So I'm gonna close this.

Thanks again!