Helper functions for Regex Validation
decoder : Json.Decode.Decoder RegexValidation
{ pattern : Regex
, message : String
}
forbidSuffixRegex : String -> Maybe Regex
Constructs a Regex that forbids a string from having the provided suffixes. Avoids lookarounds to ensure compatibility with WebKit-based browsers.
fromSuffixConstraints : List ( String, String ) -> List RegexValidation