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 `ifNoRegexMatch` function for validating against a custom regular expression #42

Open whage opened 4 years ago

whage commented 4 years ago

ifNoRegexMatch is mostly a copy-paste of the ifInvalidEmail function but it takes an additional String, pattern which it interprets as a regular expression and validates the given subject against it.