Merge pull request #4401 from Ben0it-T/fix-Boards.uniqueTitle

fix Boards.uniqueTitle not working as expected #4400
This commit is contained in:
Lauri Ojansivu 2022-03-06 17:51:02 +02:00 committed by GitHub
commit f8b60de988
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1478,11 +1478,11 @@ Boards.uniqueTitle = title => {
},
);
if (num > 0) {
return `${base} [${num + 1}]`;
}
return title;
return `${m.groups.title} [${num + 1}]`;
//if (num > 0) {
// return `${base} [${num + 1}]`;
//}
//return title;
};
Boards.userSearch = (