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

Fix bug where a .tid extension was being added twice if tiddler name longer than 200 characters.

This commit is contained in:
Jim Lehmer 2015-01-02 11:25:54 -06:00
parent 42efd4116d
commit 809a59920a

View File

@ -95,7 +95,7 @@ FileSystemAdaptor.prototype.generateTiddlerFilename = function(title,extension,e
var baseFilename = title.replace(/<|>|\:|\"|\/|\\|\||\?|\*|\^|\s/g,"_");
// Truncate the filename if it is too long
if(baseFilename.length > 200) {
baseFilename = baseFilename.substr(0,200) + extension;
baseFilename = baseFilename.substr(0,200);
}
// Start with the base filename plus the extension
var filename = transliterate(baseFilename) + extension,