File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -422,11 +422,11 @@ sub assert_uri_reference ($state, $schema) {
422
422
return E($state , ' %s value is not a valid URI reference' , $state -> {keyword })
423
423
# see also uri-reference format sub
424
424
if fc(Mojo::URL-> new($string )-> to_unsafe_string) ne fc($string )
425
- or $string =~ / [^[:ascii:]]/
426
- or $string =~ / #/
427
- and $string !~ m { #$} # empty fragment
428
- and $string !~ m { #[A-Za-z][A-Za-z0-9_:.-]*$} # plain-name fragment
429
- and $string !~ m { #/(?:[^~]|~[01])*$} ; # json pointer fragment
425
+ or $string =~ / [^[:ascii:]]/ # ascii characters only
426
+ or $string =~ / #/ # no fragment, except...
427
+ and $string !~ m { #$} # allow empty fragment
428
+ and $string !~ m { #[A-Za-z][A-Za-z0-9_:.-]*$} # allow plain-name fragment
429
+ and $string !~ m { #/(?:[^~]|~[01])*$} ; # allow json pointer fragment
430
430
431
431
return 1;
432
432
}
You can’t perform that action at this time.
0 commit comments