Skip to content
Snippets Groups Projects
Commit 7f2569b5 authored by mcmlxxix's avatar mcmlxxix
Browse files

check arg type when using getColor()

parent 6ee7d16b
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@
function getColor(color)
{
if(isNaN(color)) color=color.toUpperCase();
switch(color)
{
case "BLACK":
......@@ -42,6 +43,11 @@ function getColor(color)
return MAGENTA;
case MAGENTA:
return "\1M";
case "BG_BLACK":
case "\0010":
return BG_BLACK;
case "BG_BLACK":
return "\0010";
case "BG_BLUE":
case "\0014":
return BG_BLUE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment