1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-10 11:59:58 +00:00

Merge pull request #1305 from dullroar/master

Fix bug where a .tid extension was being added twice if tiddler name lon...
This commit is contained in:
Jeremy Ruston 2015-01-02 17:31:35 +00:00
commit 7acbad43fe

View File

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