Skip to content

Commit 1bd64aa

Browse files
authored
Merge bhalsey/eng-2804/bug-scim-groups-endpoint-does-wildcard-search (#145)
1 parent 2cbfcda commit 1bd64aa

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/main/java/io/fusionauth/domain/util/SQLTools.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021-2023, FusionAuth, All Rights Reserved
2+
* Copyright (c) 2021-2025, FusionAuth, All Rights Reserved
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -93,10 +93,18 @@ public static String sanitizeOrderBy(String orderBy) {
9393
}
9494

9595
public static String toSearchString(String s) {
96+
return toSearchString(s, false);
97+
}
98+
99+
public static String toSearchString(String s, boolean exactMatch) {
96100
if (s == null) {
97101
return null;
98102
}
99103

104+
if (exactMatch) {
105+
return s.toLowerCase();
106+
}
107+
100108
// Escape '%' and '_' as these are reserved characters in a LIKE statement.
101109
StringBuilder sb = new StringBuilder();
102110
int index = 0;

0 commit comments

Comments
 (0)