敏感词大小写的问题

This commit is contained in:
heavyrain.lee
2019-07-09 23:22:52 +08:00
parent c1dac8a21e
commit 9509b1ffa8
2 changed files with 2 additions and 1 deletions
@@ -58,6 +58,7 @@ public class SensitiveFilter {
return sensitiveWords;
}
text = text.toLowerCase();
for(int i=0;i<text.length();i++){
int sensitiveWordLength = getSensitiveWordLength(text, i, matchType);
if(sensitiveWordLength>0){