Skip to content

Commit 2c439e4

Browse files
authored
fix user attachments firs repsonse bug (#2859)
1 parent 1e6ff6d commit 2c439e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/scripts/bug_firstResponse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = async function ({github, context}) {
1010
const body = issue.data.body;
1111
// if any of these string are in the issue body, then there was a user upload,
1212
// the first string covers all the image/video files
13-
const regex = /(!\[.*?\])|\.zip|\.rar|\.csv|\.sav|\.xlsx|\.xls|\.csv2|\.pdf|\.docx/;
13+
const regex = /user-attachments/;
1414
if (!regex.test(body)) {
1515
const comment = "@" + issue.data.user.login +
1616
", thanks for taking the time to create this issue. \

0 commit comments

Comments
 (0)