Skip to content

Commit 460fe6e

Browse files
committed
Avoid case sensitivity
1 parent abfe290 commit 460fe6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/groovy/net/zomis/duga/tasks/CommentsScanTask.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public class CommentsScanTask implements Runnable {
116116

117117
double programmersMLscore(def comment) {
118118
String text = comment.body_markdown
119-
if (!text.contains("programmers")) {
119+
if (!text.toLowerCase().contains("programmers")) {
120120
// No need to check with the Machine Learning system in this case
121121
return -1;
122122
}

0 commit comments

Comments
 (0)