Skip to content

Commit

Permalink
use expanduser instead of replace with homedir() (#1595)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC authored Jan 7, 2020
1 parent b7f2c8d commit 4a74692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/REPLMode/argument_parsers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ end
# Registries can be identified through: uuid, name, or name+uuid
# when updating/removing. When adding we can accept a local path or url.
function parse_registry(word::AbstractString; add=false)::RegistrySpec
word = replace(word, "~" => homedir())
word = expanduser(word)
registry = RegistrySpec()
if add && isdir_windows_workaround(word) # TODO: Should be casesensitive_isdir
if isdir(joinpath(word, ".git")) # add path as url and clone it from there
Expand Down

0 comments on commit 4a74692

Please sign in to comment.