mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-03 07:42:37 -08: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue