Skip to content

Commit

Permalink
fix: exact effort matching (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
nipsufn authored Nov 22, 2024
1 parent 99b36f3 commit 3d7dfbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ module.exports = async (
if (field.name === effortName) {
field.options.forEach(effort => {
effortMappingObj.forEach(element => {
if (effort.name.toLowerCase().includes(element.pattern.toLowerCase())) {
if (effort.name.toLowerCase() === element.pattern.toLowerCase()) {
if (element.value !== Infinity) {
effortMessage += ` - ${effort.name}: ${element.value} day(s) or less,\n`;
} else {
Expand Down

0 comments on commit 3d7dfbb

Please sign in to comment.