Skip to content

Commit

Permalink
private variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed Sep 19, 2023
1 parent 6d0a72e commit 9bd3afe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/redis/clients/jedis/search/RediSearchUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public static byte[] ToByteArray(float[] input) {
return bytes;
}

public static final Set<Character> TAG_ESCAPE_CHARS = new HashSet<>(Arrays.asList(//
private static final Set<Character> ESCAPE_CHARS = new HashSet<>(Arrays.asList(//
',', '.', '<', '>', '{', '}', '[', //
']', '"', '\'', ':', ';', '!', '@', //
'#', '$', '%', '^', '&', '*', '(', //
Expand All @@ -77,7 +77,7 @@ public static String escape(String text, boolean querying) {

StringBuilder sb = new StringBuilder();
for (char ch : chars) {
if (TAG_ESCAPE_CHARS.contains(ch)
if (ESCAPE_CHARS.contains(ch)
|| (querying && ch == ' ')) {
sb.append("\\");
}
Expand Down

0 comments on commit 9bd3afe

Please sign in to comment.