Skip to content
Snippets Groups Projects
Commit a5d25d5a authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

Allow empty strings

parent 3c7ef159
No related branches found
No related tags found
No related merge requests found
function validateWebsiteUrl(value, nonEmpty = false) {
if (!nonEmpty && (value === undefined || value == null)) {
if (!nonEmpty && (value == undefined || value == null || value == '')) {
return true;
}
try {
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment