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.
Remote.IsValidURL
1 parent 3232e6f commit 598ba6dCopy full SHA for 598ba6d
src/Models/Remote.cs
@@ -50,19 +50,7 @@ public static bool IsValidURL(string url)
50
return true;
51
}
52
53
- var localPath = url;
54
- if (OperatingSystem.IsWindows())
55
- {
56
- if (url.StartsWith("file:///", StringComparison.Ordinal))
57
- localPath = url.Substring(8);
58
- }
59
- else
60
61
- if (url.StartsWith("file://", StringComparison.Ordinal))
62
- localPath = url.Substring(7);
63
64
-
65
- return Directory.Exists(localPath);
+ return url.StartsWith("file://", StringComparison.Ordinal) || Directory.Exists(url);
66
67
68
public bool TryGetVisitURL(out string url)
0 commit comments