mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Don't trim inner string when matching proxy tags
This commit is contained in:
parent
178e256583
commit
0ee22813fa
2 changed files with 8 additions and 7 deletions
|
|
@ -71,10 +71,10 @@ namespace PluralKit.Bot
|
|||
if (!isMatch) return false;
|
||||
|
||||
// We got a match, extract inner text
|
||||
inner = input.Substring(prefix.Length, input.Length - prefix.Length - suffix.Length).Trim();
|
||||
inner = input.Substring(prefix.Length, input.Length - prefix.Length - suffix.Length);
|
||||
|
||||
// (see https://github.com/xSke/PluralKit/pull/181)
|
||||
return inner != "\U0000fe0f";
|
||||
return inner.Trim() != "\U0000fe0f";
|
||||
}
|
||||
|
||||
private string? ExtractLeadingMention(ref string input)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue