Skip to content

Commit 0962b13

Browse files
authored
fix: also detect dash in FOR HIRE
1 parent bbf223d commit 0962b13

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 /]+\]\s*){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)