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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user