Strip '-' from strings coming in to be de-serialized.

This commit is contained in:
pltaylor
2013-11-07 14:26:01 -05:00
parent 6f911a52bf
commit 04349e6172

View File

@@ -75,6 +75,7 @@ namespace Octokit.Internal
if (ReflectionUtils.GetTypeInfo(type).IsEnum)
{
stringValue = stringValue.Replace("-", "");
return Enum.Parse(type, stringValue, ignoreCase: true);
}