From d0db2221d304ca0f40a61b369df5e6e563d17354 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 19 Sep 2013 13:50:28 +0100 Subject: [PATCH] Fix problem with lowercase drive letters when saving with TiddlyFox under Windows --- core/modules/savers/tiddlyfox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/savers/tiddlyfox.js b/core/modules/savers/tiddlyfox.js index 82f076dc6..7ae1448da 100644 --- a/core/modules/savers/tiddlyfox.js +++ b/core/modules/savers/tiddlyfox.js @@ -21,7 +21,7 @@ TiddlyFoxSaver.prototype.save = function(text,callback) { // Get the pathname of this document var pathname = document.location.pathname; // Test for a Windows path of the form /x:/blah/blah - if(/^\/[A-Z]\:\//.test(pathname)) { + if(/^\/[A-Z]\:\//i.test(pathname)) { // Remove the leading slash pathname = pathname.substr(1); // Convert slashes to backslashes