Skip to content

Commit d5eb5e3

Browse files
bfabionodivbyzero
andauthored
Update baked_in.go
Co-authored-by: nodivbyzero <[email protected]>
1 parent 5f118ad commit d5eb5e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

baked_in.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1479,7 +1479,7 @@ func isURL(fl FieldLevel) bool {
14791479
return false
14801480
}
14811481

1482-
if url.Host == "" && url.Fragment == "" && url.Opaque == "" {
1482+
if url.Scheme == "" || (url.Host == "" && url.Fragment == "" && url.Opaque == "") {
14831483
return false
14841484
}
14851485

0 commit comments

Comments
 (0)