mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Merge pull request #4025 from ilvar/feature-rules-title-partial-match
Feature: allow word match for rules -> title filter
This commit is contained in:
commit
ff01c2a69f
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue