mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 17:10:29 +00:00
Fix problem with lowercase drive letters when saving with TiddlyFox under Windows
This commit is contained in:
parent
dec7870eeb
commit
d0db2221d3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user