GeyserMC / GeyserDiscordBot

A bot for the GeyserMC Discord server
https://geysermc.org
MIT License
22 stars 42 forks source link

Fix subdomains of checkdomains being filtered #279

Closed Kas-tle closed 1 year ago

Kas-tle commented 1 year ago

Currently domains like gist.github.com and github.dev are filtered, despite being legitimate GitHub owned properties. This PR resolves this by first checking if the link in question is a domain or subdomain for a domain on the check domain list. The fuzzy match filter is then only applied if that condition was not met.