We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc75312 commit 647d6bcCopy full SHA for 647d6bc
src/functions/trigger-check.js
@@ -15,7 +15,7 @@ export async function triggerCheck(body, trigger) {
15
}
16
17
// Ensure the trigger match is complete: either end-of-string or followed by whitespace
18
- const nextChar = body.slice(trigger.length, trigger.length + 1)
+ const nextChar = body[trigger.length]
19
if (nextChar && !/\s/.test(nextChar)) {
20
core.debug(
21
`comment body starts with trigger but is not complete: ${COLORS.highlight}${trigger}${COLORS.reset}`
0 commit comments