Merge branch 'master' of https://github.com/wekan/wekan into new-search

This commit is contained in:
John R. Supplee 2021-01-23 17:36:09 +02:00
commit b40d53df84
66 changed files with 732 additions and 605 deletions

View file

@ -569,7 +569,7 @@ Boards.helpers({
*/
copyTitle() {
const m = this.title.match(/^(?<title>.*?)\s*(\[(?<num>\d+)]\s*$|\s*$)/);
const title = m.groups.title;
const title = escapeForRegex(m.groups.title);
let num = 0;
Boards.find({ title: new RegExp(`^${title}\\s*\\[\\d+]\\s*$`) }).forEach(
board => {