1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-30 06:42:27 +01:00

Fix io.js

This commit is contained in:
Kris Maglione
2008-12-24 14:21:20 -05:00
parent baf1af72e5
commit 91d824b4a6

View File

@@ -941,7 +941,8 @@ IO.expandPath = function (path, relative)
path = expand(path);
// expand ~
if (!relative && (WINDOWS ? /^~(?:$|[\\\/])/ : /^~(?:$|\/)/).test(path))
// Yuck.
if (!relative && RegExp("~(?:$|[/" + util.escapeRegex(IO.PATH_SEP) + "])").test(path))
{
// Try $HOME first, on all systems
let home = services.get("environment").get("HOME");