diff --git a/src/validation/rules.ts b/src/validation/rules.ts index 383453a..3ee278b 100644 --- a/src/validation/rules.ts +++ b/src/validation/rules.ts @@ -250,6 +250,10 @@ const rules: Record = { * Rule: checks if a string is a valid url */ url ({ value }: ValidationContext): boolean { + if (!value) { + return true + } + return isUrl(value) },