diff --git a/lib/filters/filter.js b/lib/filters/filter.js index e25b42d..14df8a8 100644 --- a/lib/filters/filter.js +++ b/lib/filters/filter.js @@ -61,14 +61,14 @@ Filter.prototype.toBer = function(ber) { /* * Test a rule against one or more values. */ -Filter.multi_test = function (rule, value) { - if(Array.isArray(value)) { +Filter.multi_test = function(rule, value) { + if (Array.isArray(value)) { var response = false; value.forEach(function(v) { - if(rule(v)) { response = true; } + if (rule(v)) { response = true; } }); return response; } else { return rule(value); } -} +}; diff --git a/lib/filters/substr_filter.js b/lib/filters/substr_filter.js index 10a107e..64331d2 100644 --- a/lib/filters/substr_filter.js +++ b/lib/filters/substr_filter.js @@ -81,7 +81,9 @@ SubstringFilter.prototype.matches = function(target) { re += this['final'] + '$'; var matcher = new RegExp(re); - return Filter.multi_test( function(v) { return matcher.test(v); }, target[this.attribute]); + return Filter.multi_test( + function(v) { return matcher.test(v); }, + target[this.attribute]); } return false;