Skip to content

Commit

Permalink
Fixes no comma format for rgbcolor.
Browse files Browse the repository at this point in the history
  • Loading branch information
mntone committed Mar 20, 2018
1 parent debf84f commit e3ed94b
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -225,8 +225,7 @@ private static RgbColor ParseColorFunc(string color)
}

ptr.AdvanceWhiteSpace();
if (ptr.Char != ',') throw new ArgumentException(nameof(color));
++ptr;
if (ptr.Char == ',') ++ptr;
ptr.AdvanceWhiteSpace();

var s2 = ptr.Index;
Expand All @@ -241,8 +240,7 @@ private static RgbColor ParseColorFunc(string color)
}

ptr.AdvanceWhiteSpace();
if (ptr.Char != ',') throw new ArgumentException(nameof(color));
++ptr;
if (ptr.Char == ',') ++ptr;
ptr.AdvanceWhiteSpace();

var s3 = ptr.Index;
Expand Down

0 comments on commit e3ed94b

Please sign in to comment.