Page 1 of 1

[Fixed] VFilter - NOT operator: ! does not work as expected

Posted: 25 Apr 2016 11:43
by Nolan
 
A tab: D:\TEST and its normal list in fresh XY v16.60.0302:
content_TEST.png
After applying VF pattern: d;!5 to the tab:
VF_pattern_1.png
Besides def123, abc123 should also show up in the filtered list, right?


BTW, please help confirm if the 2 VF patterns shown below work right.
1) After applying pattern: "*bc12*":
VF_pattern_2.png
2) After applying pattern: *"bc12"*:
VF_pattern_3.png

Re: VFilter - NOT operator: ! does not work as expected

Posted: 25 Apr 2016 12:39
by admin
1) WOW, good bug! :tup: Quite strange that this bug could remain undiscovered for 2.5 years (and apparently never worked even on the day I added it to the change log)!

Fix comes.

2+3) Those patterns cannot match anything because of the quotes. Simply remove the quotes...

Re: VFilter - NOT operator: ! does not work as expected

Posted: 25 Apr 2016 12:48
by highend
2+3: Loose matches vs. strict matches (enforced by double quotes). The help file contains the details :)

Posted: 25 Apr 2016 14:46
by Nolan
 
Thanks for the explanation.

But XY's help file gives an example:

Code: Select all

Desktop|"*; *"| = List all items on Desktop containing "; "
In the example, the pattern contains both " " and *. Is the example's filter syntax incorrect?


Normal list:
content2_TEST.png
After applying pattern: "*; *"|:
VF_pattern_4.png
After applying pattern: *; *|:
VF_pattern_5.png

Re:

Posted: 25 Apr 2016 15:36
by admin
Nolan wrote: 
Thanks for the explanation.

But XY's help file gives an example:

Code: Select all

Desktop|"*; *"| = List all items on Desktop containing "; "
In the example, the pattern contains both " " and *. Is the example's filter syntax incorrect?
Indeed, it is incorrect. It should have been like this:

Code: Select all

Desktop|*; *| = List all items containing "; "
Thanks for seeing this! :tup: