mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-21 14:45:11 +00:00
Strip '-' from strings coming in to be de-serialized.
This commit is contained in:
@@ -75,6 +75,7 @@ namespace Octokit.Internal
|
|||||||
|
|
||||||
if (ReflectionUtils.GetTypeInfo(type).IsEnum)
|
if (ReflectionUtils.GetTypeInfo(type).IsEnum)
|
||||||
{
|
{
|
||||||
|
stringValue = stringValue.Replace("-", "");
|
||||||
return Enum.Parse(type, stringValue, ignoreCase: true);
|
return Enum.Parse(type, stringValue, ignoreCase: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user