Skip to content

Commit

Permalink
remove trailing / from AssetRegsitry key (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
shashi authored May 10, 2019
1 parent 2df601b commit 119a22b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imports.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function path2url(path::AbstractString)
while true
if AssetRegistry.isregistered(cur_path) && isdir(cur_path)
key = AssetRegistry.getkey(cur_path)
url = key * "/" * replace(path, cur_path => "")
url = key * "/" * replace(replace(path, cur_path => ""), r"^\/"=>"")
return url
end
cur_path1 = dirname(cur_path)
Expand Down

0 comments on commit 119a22b

Please sign in to comment.