Skip to content

Commit

Permalink
🐛 fix query that ends in a *
Browse files Browse the repository at this point in the history
Signed-off-by: Pranav Gaikwad <[email protected]>
  • Loading branch information
pranavgaikwad committed Jul 9, 2024
1 parent f9b679c commit b46a3bc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ private static void setPosition(Position position, int[] coords) {
* we do this so that we can rule out a lot of matches before going the AST route
*/
default boolean queryQualificationMatches(String query, ICompilationUnit unit, Location location) {
query = query.replaceAll("(?<!\\.)\\*", ".*");
String queryQualification = "";
int dotIndex = query.lastIndexOf('.');
if (dotIndex > 0) {
Expand Down

0 comments on commit b46a3bc

Please sign in to comment.