Skip to content

Commit

Permalink
fix: 包含关键字正则修改
Browse files Browse the repository at this point in the history
  • Loading branch information
SunPengWan committed Dec 20, 2024
1 parent c6c0a3f commit f4daa64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ private List<String> getNotContainsKeywordsNodePath(List<String> codePaths, Stri
return null;
}

Pattern pattern = Pattern.compile("(create\\s+table|insert)\\s*", Pattern.CASE_INSENSITIVE);
Pattern pattern = Pattern.compile("\\b(create\\s+table|insert)\\b",Pattern.CASE_INSENSITIVE);

for (GitFileContentResponse gitFileContentResponse : gitDiffFileContentResponse.getGitFileContentResponseList()) {

Expand Down

0 comments on commit f4daa64

Please sign in to comment.