1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 00:50:28 +00:00

Fix problem with lowercase drive letters when saving with TiddlyFox under Windows

This commit is contained in:
Jeremy Ruston 2013-09-19 13:50:28 +01:00
parent dec7870eeb
commit d0db2221d3

View File

@ -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