Module
Text.URL.Validate
- 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.
#urlToNEString Source
urlToNEString :: URL -> NonEmptyString#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
- Text.
URL. Validate