Skip to content

Commit ab589cd

Browse files
committed
Fix bot not handling public requests with paper number in brackets
1 parent 0d2dcc5 commit ab589cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

paperbot/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "isocpp-mattermost-paperbot",
3-
"version": "2.0.0-rc.9",
3+
"version": "2.0.1",
44
"description": "",
55
"main": "src/index.js",
66
"scripts": {

paperbot/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ class PaperBot {
550550
this.stats.paper_requests_handled += 1;
551551

552552
const paper_request_regex = /(?:(C|E|LE?)WG|FS|SD|N|P|D|EDIT) ?\d+(R\d+)?/gi;
553-
const papers_requested = [...post.message.matchAll(paper_request_regex)].map(m => m[0]);
553+
const papers_requested = [...post.message.matchAll(paper_request_regex)].map(m => m[1]);
554554
this.handlePaperRequest(post, papers_requested, true);
555555
}
556556

0 commit comments

Comments
 (0)