File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/SwaggerProvider.DesignTime Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ module SchemaReader =
2626 else if RuntimeInformation.IsOSPlatform( OSPlatform.Windows) then
2727 // On Windows, a truly absolute path has a volume (C:\, D:\, etc.)
2828 // Paths like \path or /path are rooted but may be relative if they start with .. or .
29- if root.Contains( ':' ) then
29+ if root.Contains( " : " ) then
3030 // Has drive letter, truly absolute
3131 true
3232 else
@@ -51,7 +51,7 @@ module SchemaReader =
5151 // On Windows, if path is like \path without drive, combine with drive from resolutionFolder
5252 if
5353 RuntimeInformation.IsOSPlatform( OSPlatform.Windows)
54- && not ( Path.GetPathRoot( schemaPathRaw) .Contains( ':' ))
54+ && not ( Path.GetPathRoot( schemaPathRaw) .Contains( " : " ))
5555 then
5656 Path.Combine( Path.GetPathRoot resolutionFolder, schemaPathRaw.Substring 1 )
5757 else
You can’t perform that action at this time.
0 commit comments