Skip to content

Commit 81f30a5

Browse files
authored
Make color parameter caps (#81)
So now if you do -c Red instead of -c RED, it works too.
1 parent da49f61 commit 81f30a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyfiglet/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ def getFonts(self):
864864
def color_to_ansi(color, isBackground):
865865
if not color:
866866
return ''
867-
867+
color = color.upper()
868868
if color.count(';') > 0 and color.count(';') != 2:
869869
raise InvalidColor('Specified color \'{}\' not a valid color in R;G;B format')
870870
elif color.count(';') == 0 and color not in COLOR_CODES:

0 commit comments

Comments
 (0)