mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Merge pull request #1445 from disarray2077/patch-8
Improve Enum.Parse functionality
This commit is contained in:
commit
c887a69e7d
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,8 @@ namespace System
|
|||
{
|
||||
if (str.Equals(name, ignoreCase))
|
||||
return .Ok(data);
|
||||
if (int64.Parse(str) case .Ok(let val) && val == (.)data)
|
||||
return .Ok(data);
|
||||
}
|
||||
|
||||
return .Err;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue