unusedtitle trim title if needed (#8882)

This commit is contained in:
Mario Pietsch authored and GitHub committed 2025-01-07 16:26:02 +00:00
1 parent f8a8f00f52
commit 4478f445a5
1 file changed
+1 -1
+1 -1
View File
@@ -31,7 +31,7 @@ exports.run = function(baseName,separator,template,startCount) {
}
// $tw.wiki.generateNewTitle = function(baseTitle,options)
// options.prefix must be a string!
return this.wiki.generateNewTitle(baseName, {"prefix": separator, "template": template, "startCount": startCount});
return this.wiki.generateNewTitle(baseName, {"prefix": separator, "template": template, "startCount": startCount}).trim();
};
})();