Skip to content

Commit

Permalink
fix: Lowercase bug in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Varun-Kolanu committed Oct 19, 2024
1 parent b1b1fdd commit 76cd9c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/check_request.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ export function checkRequest(comment, config) {
.replace(/\s+/g, " ") // trim whitespace
.toLowerCase(); // Case insensitive

if (config[Request.ASSIGN] && comment.includes(config[Request.ASSIGN])) {
if (config[Request.ASSIGN] && comment.includes(config[Request.ASSIGN].toLowerCase())) {
return Request.ASSIGN;
}
if (config[Request.UNASSIGN] && comment.includes(config[Request.UNASSIGN])) {
if (config[Request.UNASSIGN] && comment.includes(config[Request.UNASSIGN].toLowerCase())) {
return Request.UNASSIGN;
}
return Request.SKIP;
Expand Down

0 comments on commit 76cd9c9

Please sign in to comment.