Skip to content

Commit

Permalink
use URI in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sky-2002 committed Dec 19, 2024
1 parent 57e58e3 commit bed3bfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/json_schema/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ mod tests {
// ==========================================================
(
r#"{"title": "Foo", "type": "string", "format": "uri"}"#,
r"^(https?|ftp):\/\/([^\s:@]+(:[^\s:@]*)?@)?([a-zA-Z\d.-]+\.[a-zA-Z]{2,}|localhost)(:\d+)?(\/[^\s?#]*)?(\?[^\s#]*)?(#[^\s]*)?$|^urn:[a-zA-Z\d][a-zA-Z\d\-]{0,31}:[^\s]+$",
URI,
vec![
"http://example.com",
"https://example.com/path?query=param#fragment",
Expand Down

0 comments on commit bed3bfd

Please sign in to comment.