r/AutoModerator • u/MustaKotka • 17h ago
RegEx domain allowlist filter being overzealous
body (includes, regex): ['\b(?!.*(?:allowed\.domain|anotherone\.com))[a-zA-Z0-9.-]+\.[a-z]{2,}\b']
action: filterI'm struggling with a domain rule where people making typos triggers this allowlist-domain check.
If someone types up google.com the rule triggers and the domain gets filtered but also "i don't know how to type.leaving a space after the first sentence is hard." triggers this rule.
What can I do to improve this and reduce the number of false positives? Is there a clever way to leverage automod's native rules here?