Skip to content

Commit 8a59318

Browse files
committed
bug fix
Signed-off-by: Jing Zhang <[email protected]>
1 parent 26885b1 commit 8a59318

File tree

1 file changed

+1
-1
lines changed
  • common/src/main/java/org/opensearch/ml/common/model

1 file changed

+1
-1
lines changed

common/src/main/java/org/opensearch/ml/common/model/MLGuard.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public Boolean validateRegexList(String input, List<String> regexList) {
8787
public Boolean validateRegex(String input, String regex) {
8888
Pattern pattern = Pattern.compile(regex);
8989
Matcher matcher = pattern.matcher(input);
90-
return matcher.matches();
90+
return !matcher.matches();
9191
}
9292

9393
public Boolean validateStopWords(String input, Map<String, List<String>> stopWordsIndices) {

0 commit comments

Comments
 (0)