I have a JS file which has this line of code:
var menuID = node.getAttribute("id");
Two different searches produces two different results when it should be the same.
Search 1:
Find "var menuID" in files, case-insensitive, in directory where file exists finds this line of code.
(Attachment 1 shows search performed and results)
Search 2:
Find "var menuID" in files, case-insensitive, whole words only, in directory where file exists does not find this line of code.
(Attachment 2 shows whole words only search, Attachment 3 shows results)
In my understanding, "whole words only, should find any instance bounded by spaces or other word boundaries. Even though this search string has a space in the middle, it is also bounded by whitespace, and therefore should be found in "whole words only".
Also, some other phrases even with spaces would be found with "whole words only", it seems to have something to do with the keyword "var".
This is very crucial, since whole words only is several times faster than regular search in a large codebase.
It seems that this is recently broken. I've been using IntelliJ IDEA for a long time, and have never noticed any such problem.