mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-18 09:52:20 +00:00
Adjust formatting of task ordering filter
This commit is contained in:
parent
8faf96f5b9
commit
3e32d4244f
1 changed files with 4 additions and 4 deletions
|
|
@ -12,16 +12,16 @@ angular.module('habitrpg')
|
|||
if (!input) return;
|
||||
|
||||
if (!angular.isString(term) || term.legth === 0) {
|
||||
return input;
|
||||
return input;
|
||||
}
|
||||
|
||||
term = new RegExp(term, 'i');
|
||||
|
||||
var result = [], i;
|
||||
var result = [];
|
||||
|
||||
for (i = 0; i < input.length; i++) {
|
||||
for (var i = 0; i < input.length; i++) {
|
||||
if (term.test(input[i].text) || term.test(input[i].notes)) {
|
||||
result.push(input[i]);
|
||||
result.push(input[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue