Skip to content

Commit 09a0701

Browse files
authored
Detect [FOR HIRE] on multiple lines
1 parent d1c8d9c commit 09a0701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/mod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { rulesChannelId } from '../env';
55
// Most job posts are in this format:
66
// > [FOR HIRE][REMOTE][SOMETHING ELSE]
77
// > Hi, I'm ponyman6000. Hire me!
8-
const jobPostRegex = /^(?:\[[A-Z ]+\]){2,}\n/i;
8+
const jobPostRegex = /^(?:\[[A-Z ]+\]\s*){2,}\n/i;
99

1010
const SPAM_CHANNEL_THRESHOLD = 3;
1111
const SPAM_MAX_TIME = 5000;

0 commit comments

Comments
 (0)