mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Refactor and categorize tests
This commit is contained in:
parent
4ea06b939a
commit
e5ac5edc35
2 changed files with 160 additions and 63 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue