File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/main/java/io/fusionauth/domain/util Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 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 ;
You can’t perform that action at this time.
0 commit comments