File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ namespace duckdb
3030 // | - OR
3131 // (mailto|sms|tel) - Capturing group for other protocols (mailto, sms, tel)
3232 // :[^/] - Matches ":" followed by any character except "/"
33- std::regex schema_regex (R"( ^(http|https|ftp):\/\/|^(mailto|sms|tel):[^/])" );
33+ std::regex schema_regex (R"( ^(http|https|ftp|rsync ):\/\/|^(mailto|sms|tel):[^/])" );
3434 std::smatch schema_match;
3535
3636 // Use regex_search to find the schema component in the input string
Original file line number Diff line number Diff line change @@ -95,6 +95,13 @@ SELECT extract_schema('ftp:/example.com');
9595----
9696(empty)
9797
98+ # ---------------------------- RSYNC ----------------------------
99+
100+ query I
101+ SELECT extract_schema('rsync://rpki.example.com');
102+ ----
103+ rsync
104+
98105# ---------------------------- TEL ----------------------------
99106
100107query I
You can’t perform that action at this time.
0 commit comments