mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 00:37:11 +00:00
Merge pull request #95 from chenzw95/mono-fixes
Trim underscores in Util.ToInt32 and Util.ToUInt32
This commit is contained in:
commit
088996f4ce
1 changed files with 2 additions and 2 deletions
|
@ -184,11 +184,11 @@ namespace PKHeX
|
|||
// Data Retrieval
|
||||
internal static int ToInt32(string value)
|
||||
{
|
||||
return string.IsNullOrWhiteSpace(value) ? 0 : int.Parse(value.Trim());
|
||||
return string.IsNullOrWhiteSpace(value) ? 0 : int.Parse(value.Trim(new char[2] { ' ', '_' }));
|
||||
}
|
||||
internal static uint ToUInt32(string value)
|
||||
{
|
||||
return string.IsNullOrWhiteSpace(value) ? 0 : uint.Parse(value.Trim());
|
||||
return string.IsNullOrWhiteSpace(value) ? 0 : uint.Parse(value.Trim(new char[2] { ' ', '_' }));
|
||||
}
|
||||
internal static uint getHEXval(string s)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue