1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 08:08:00 +01:00

fix :cd to bypass 'cdpath' for absolute pathnames on Windows again -

overwritten in recent commit
This commit is contained in:
Doug Kearns
2008-10-03 03:25:36 +00:00
parent 36ca0c98a8
commit 0229483a4e

View File

@@ -142,7 +142,7 @@ liberator.IO = function () //{{{
// go directly to an absolute path or look for a relative path
// match in 'cdpath'
if (/^(~|\/|\.\/|\.\.\/)/.test(args))
if (/^(~|\/|[a-z]:|\.\/|\.\.\/)/i.test(args))
{
// TODO: apparently we don't handle ../ or ./ paths yet
if (liberator.io.setCurrentDirectory(args))