Refactor and categorize tests

This commit is contained in:
Ske
2020-06-14 20:22:29 +02:00
parent 4ea06b939a
commit e5ac5edc35
2 changed files with 160 additions and 63 deletions

View File

@@ -65,6 +65,7 @@ namespace PluralKit.Bot
// Special case: image-only proxies + proxy tags with spaces
// Trim everything, then see if we have a "contentless tag pair" (normally disallowed, but OK if we have an attachment)
// Note `input` is still "", even if there are spaces between
if (!isMatch && input.Trim() == prefix.TrimEnd() + suffix.TrimStart())
return true;
if (!isMatch) return false;