From 0229483a4e7cf7f3ea280e93af75c740645dffe6 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 3 Oct 2008 03:25:36 +0000 Subject: [PATCH] fix :cd to bypass 'cdpath' for absolute pathnames on Windows again - overwritten in recent commit --- content/io.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/io.js b/content/io.js index c26a7af3..5c072e31 100644 --- a/content/io.js +++ b/content/io.js @@ -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))