Skip to content

Commit a27a172

Browse files
authored
Merge pull request #170 from Josh-Cena/patch-1
fix: detect slash in [FOR HIRE]
2 parents ba18047 + 0962b13 commit a27a172

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)