We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 792e458 commit 399f525Copy full SHA for 399f525
packages/apidash_core/lib/utils/uri_utils.dart
@@ -32,7 +32,13 @@ String stripUrlParams(String url) {
32
33
if (kLocalhostRegex.hasMatch(url)) {
34
url = '${SupportedUriSchemes.http.name}://$url';
35
+ } else {
36
+ final hasScheme = RegExp(r'^[a-zA-Z][a-zA-Z0-9+.-]*://').hasMatch(url);
37
+ if (!hasScheme) {
38
+ url = "${defaultUriScheme.name}://$url";
39
+ }
40
}
41
+
42
Uri? uri = Uri.tryParse(url);
43
if (uri == null) {
44
return (null, "Check URL (malformed)");
0 commit comments