Go to symbol: Inconsistent logic when using wildcard prefix/suffix.

[5.1.1700]
I have the following 3 classes:
{code lang=java}

private class Foo {}
private class FooBar{}
private class BarFoo {}
{code}

Case 1: No wildcard - Showing with Foo as substring (as expected):
temp.jpg

Case 2: Wildcard suffix - Showing Foo as prefix, but not "Foo" itself (expected also Foo to show here)
temp.jpg
Case 3: Wildcard prefix - Showing same as Case1 (expected only symbols ending with Foo, i.e. Foo and BarFoo):temp.jpg


Bug or by design?
If by design, shouldn't case 3 only show "BarFoo" if matching the logic used in Case 2? (if wildcard means 1-n chars and not 0-n).

Thanks

2 comments
Comment actions Permalink

Hrm I think this is the same as issue http://youtrack.jetbrains.net/issue/RSRP-170513 (status Submitted).

0
Comment actions Permalink

Hello,

On this one—

Case 3: Wildcard prefix - Showing same as Case1 (expected only symbols
ending with Foo, i.e. Foo and BarFoo): Image:temp.jpg


Adding a space at the end of the search string prevents the implicit trailing
".*" (there're some exceptions in case of camel humps matching though).


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0

Please sign in to leave a comment.