Merge pull request #4025 from ilvar/feature-rules-title-partial-match

Feature: allow word match for rules -> title filter
This commit is contained in:
Lauri Ojansivu 2021-10-01 19:48:16 +03:00 committed by GitHub
commit ff01c2a69f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,8 +47,12 @@ RulesHelper = {
value = oldSwimlane.title;
}
}
let matchesList = [value, '*'];
if (field === 'cardTitle') {
matchesList = value.split(/\W/).concat(matchesList);
}
matchingMap[field] = {
$in: [value, '*'],
$in: matchesList,
};
});
return matchingMap;