mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-28 00:03:32 +01:00
Fix io.js
This commit is contained in:
@@ -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