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:
parent
42efd4116d
commit
809a59920a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user