#392 fixed searching abilities with spaces
This commit is contained in:
parent
d89298e3d8
commit
7de315bc04
@ -47,7 +47,7 @@ namespace NadekoBot.Modules.Searches.Commands
|
|||||||
.Parameter("abil", ParameterType.Unparsed)
|
.Parameter("abil", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
var ab = e.GetArg("abil")?.Trim().ToUpperInvariant();
|
var ab = e.GetArg("abil")?.Trim().ToUpperInvariant().Replace(" ", "");
|
||||||
if (string.IsNullOrWhiteSpace(ab))
|
if (string.IsNullOrWhiteSpace(ab))
|
||||||
return;
|
return;
|
||||||
foreach (var kvp in pokemonAbilities)
|
foreach (var kvp in pokemonAbilities)
|
||||||
|
Loading…
Reference in New Issue
Block a user