Browse Source

Edqs - sql like queries case insensitive

pull/13594/head
Volodymyr Babak 8 months ago
parent
commit
969b0fec00
  1. 4
      common/edqs/src/main/java/org/thingsboard/server/edqs/util/RepositoryUtils.java

4
common/edqs/src/main/java/org/thingsboard/server/edqs/util/RepositoryUtils.java

@ -339,9 +339,9 @@ public class RepositoryUtils {
} else if ("$".equals(suffix)) {
regexValue = (regexValue.startsWith(".*") ? "" : ".*") + regexValue + "$";
}
return Pattern.compile(regexValue);
return Pattern.compile(regexValue, Pattern.CASE_INSENSITIVE);
} else {
return Pattern.compile(prefix + Pattern.quote(value) + suffix);
return Pattern.compile(prefix + Pattern.quote(value) + suffix, Pattern.CASE_INSENSITIVE);
}
}

Loading…
Cancel
Save