Module
URL.Validator
- Package
- purescript-url-validator
- Repository
- bbarker/purescript-url-validator
#parsePublicURL Source
parsePublicURL :: String -> Either String URLReturns a URL if it is determiend the input string is a URL and that the URL contains no username or password. Otherwise, returns an error message string.
#urlToString Source
urlToString :: URL -> String#validateURL Source
validateURL :: String -> BooleanReturns true if a valid URL is passed in, false otherwise.
#validatePublicURL Source
validatePublicURL :: String -> BooleanReturns true if a valid URL is passed in, false otherwise.
Also returns false if the URL contains a username or password.
- Modules
- URL.
Validator