mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 16:50:10 +00:00
Make color set command case-insensitive
This commit is contained in:
parent
3d073df359
commit
a4f2735c64
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ namespace PluralKit.Bot.Commands
|
||||||
if (color != null)
|
if (color != null)
|
||||||
{
|
{
|
||||||
if (color.StartsWith("#")) color = color.Substring(1);
|
if (color.StartsWith("#")) color = color.Substring(1);
|
||||||
if (!Regex.IsMatch(color, "^[0-9a-f]{6}$")) throw Errors.InvalidColorError(color);
|
if (!Regex.IsMatch(color, "^[0-9a-fA-F]{6}$")) throw Errors.InvalidColorError(color);
|
||||||
}
|
}
|
||||||
|
|
||||||
ContextEntity.Color = color;
|
ContextEntity.Color = color;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue