mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 11:12:59 +08:00
Simplify parsing
This commit is contained in:
parent
c24328dda3
commit
a8ae0a032f
@ -403,9 +403,12 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
foreach (string key in keys)
|
foreach (string key in keys)
|
||||||
{
|
{
|
||||||
if (match[key].Success)
|
if (!match.TryGetValue(key, out var group) || !group.Success)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (group.Success)
|
||||||
{
|
{
|
||||||
if (!tryParseDoubleWithPoint(match[key].Value, out double length))
|
if (!tryParseDoubleWithPoint(group.Value, out double length))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
switch (key)
|
switch (key)
|
||||||
|
Loading…
Reference in New Issue
Block a user