Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix Julia compat problem
  • Loading branch information
davidanthoff committed Aug 7, 2021
commit 76777bcdbb417728ff7f7144aad77aae9970b44d
6 changes: 3 additions & 3 deletions src/URIs2/uri_helpers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ function filepath2uri(path::String)

if startswith(path, "//")
# UNC path //foo/bar/foobar
idx = findnext('/', path, 3)
idx = findnext("/", path, 3)
if idx===nothing
authority = path[3:end]
path = "/"
else
authority = path[3:idx-1]
path = path[idx:end]
authority = path[3:idx.start-1]
path = path[idx.start:end]
end
elseif length(path)>=2 && isascii(path[1]) && isletter(path[1]) && path[2]==':'
path = string('/', lowercase(path[1]), SubString(path, 2))
Expand Down