Fix op filtering only.
This commit is contained in:
parent
1b8da8fd5f
commit
f6f1f2293c
@ -562,7 +562,7 @@
|
|||||||
},
|
},
|
||||||
createFilter: function(regexp, op, hl) {
|
createFilter: function(regexp, op, hl) {
|
||||||
return function(root, value, isOP) {
|
return function(root, value, isOP) {
|
||||||
if (isOP && op === 'no' || op === 'only') return false;
|
if (isOP && op === 'no' || !isOP && op === 'only') return false;
|
||||||
if (!regexp.test(value)) return false;
|
if (!regexp.test(value)) return false;
|
||||||
if (hl) {
|
if (hl) {
|
||||||
$.addClass(root, 'filter_highlight');
|
$.addClass(root, 'filter_highlight');
|
||||||
|
|||||||
@ -454,7 +454,7 @@ filter =
|
|||||||
|
|
||||||
createFilter: (regexp, op, hl) ->
|
createFilter: (regexp, op, hl) ->
|
||||||
(root, value, isOP) ->
|
(root, value, isOP) ->
|
||||||
if isOP and op is 'no' or op is 'only'
|
if isOP and op is 'no' or !isOP and op is 'only'
|
||||||
return false
|
return false
|
||||||
unless regexp.test value
|
unless regexp.test value
|
||||||
return false
|
return false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user