Skip to content

Commit

Permalink
updated lowercase title value (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxisea authored Nov 21, 2020
1 parent c21a28d commit 3864beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const validEvent = ['pull_request'];
function validateTitlePrefix(title, prefix, caseSensitive) {
if (!caseSensitive) {
prefix = prefix.toLowerCase();
title = prefix.toLowerCase();
title = title.toLowerCase();
}
return title.startsWith(prefix);
}
Expand Down

0 comments on commit 3864beb

Please sign in to comment.