mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-06 02:23:00 +00:00
Fix bug where a .tid extension was being added twice if tiddler name longer than 200 characters.
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user