mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-21 01:25:41 +02:00
Fix io.js
This commit is contained in:
1 parent
baf1af72e5
commit
91d824b4a6
1 file changed
+2
-1
@@ -941,7 +941,8 @@ IO.expandPath = function (path, relative)
|
|||||||
path = expand(path);
|
path = expand(path);
|
||||||
|
|
||||||
// expand ~
|
// expand ~
|
||||||
if (!relative && (WINDOWS ? /^~(?:$|[\\\/])/ : /^~(?:$|\/)/).test(path))
|
// Yuck.
|
||||||
|
if (!relative && RegExp("~(?:$|[/" + util.escapeRegex(IO.PATH_SEP) + "])").test(path))
|
||||||
{
|
{
|
||||||
// Try $HOME first, on all systems
|
// Try $HOME first, on all systems
|
||||||
let home = services.get("environment").get("HOME");
|
let home = services.get("environment").get("HOME");
|
||||||
|
|||||||
Reference in new issue
Block a user