mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-21 06:35: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)
|
||||
{
|
||||
stringValue = stringValue.Replace("-", "");
|
||||
return Enum.Parse(type, stringValue, ignoreCase: true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user