Skip to content

Commit ae85e9d

Browse files
committed
making more flexible the regex pattern
Signed-off-by: Dhrubo Saha <[email protected]>
1 parent a8efc3f commit ae85e9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/org/opensearch/ml/common/utils/StringUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class StringUtils {
6464
+ "\n }\n";
6565

6666
// Regex allows letters, digits, spaces, hyphens, underscores, and dots.
67-
private static final String SAFE_INPUT_REGEX = "^[a-zA-Z0-9 _\\-\\.:]+$";
67+
private static final String SAFE_INPUT_REGEX = "^[a-zA-Z0-9 _\\-\\.:,'()]+$";
6868

6969
public static final Gson gson;
7070

0 commit comments

Comments
 (0)