Skip to content

Commit 647d6bc

Browse files
slice operation updated based on feedback
1 parent cc75312 commit 647d6bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions/trigger-check.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export async function triggerCheck(body, trigger) {
1515
}
1616

1717
// Ensure the trigger match is complete: either end-of-string or followed by whitespace
18-
const nextChar = body.slice(trigger.length, trigger.length + 1)
18+
const nextChar = body[trigger.length]
1919
if (nextChar && !/\s/.test(nextChar)) {
2020
core.debug(
2121
`comment body starts with trigger but is not complete: ${COLORS.highlight}${trigger}${COLORS.reset}`

0 commit comments

Comments
 (0)