Skip to content

Commit

Permalink
Use star constant everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
dnestoro committed May 10, 2024
1 parent 3e16e76 commit efc7e1f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ private static List<GlobTrieNode> matchOneLevel(StarTrieNode node, String wholeL
/* match prefix first */
String nodeContent = node.getContent();
String prefix = nodeContent.substring(0, nodeContent.indexOf(STAR.charAt(0)));
if (!prefix.equals("*") && !wholeLevel.startsWith(prefix)) {
if (!prefix.equals(STAR) && !wholeLevel.startsWith(prefix)) {
/* can't match prefix */
return Collections.emptyList();
}
Expand Down

0 comments on commit efc7e1f

Please sign in to comment.