Skip to content

Commit bb85856

Browse files
authored
Strip leading colon in commands (#51)
1 parent d808eb6 commit bb85856

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

GithubCommentReader/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,10 @@ async function webhook(params) {
538538
}
539539
line = line.slice(botCall.length).trim();
540540

541+
if (line.startsWith(":")) {
542+
line = line.slice(1).trim();
543+
}
544+
541545
for (const [key, command] of applicableCommands) {
542546
const match = key.exec(line);
543547
if (!match) {

0 commit comments

Comments
 (0)