fit-ctu-discord/honza-botner

[Bug] Regex for determining specific message from link has serious limitations

Closed this issue · 0 comments

Method FindMessageFromLink doesn't support canary or ptb links. Additionaly, in case the message is located in thread, the lookup fails.

Code:

const string pattern = @"https://discord(?:app)?\.com/channels/(?:\d+)/(\d+)/(\d+)/?";