Skip to content

Commit

Permalink
Don't expand '~' in the middle of a path.
Browse files Browse the repository at this point in the history
  • Loading branch information
oggy committed Sep 26, 2012
1 parent ef8c248 commit cb20069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/app.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class App
callback(null)

expandPath: (path) ->
path = path.replace(/~/, process.env.HOME)
path = path.replace(/^~/, process.env.HOME)
if path[0] != '/'
path = process.cwd() + '/' + path
pathlib.normalize(path)
Expand Down

0 comments on commit cb20069

Please sign in to comment.