add handeling for empty bounds string
All checks were successful
Build and Test / minecraft-wiiu (push) Successful in 2m8s
Build and Test / wii-u-chat (push) Successful in 2m18s
Build and Test / super-mario-maker (push) Successful in 3m28s
Build and Test / splatoon-testfire (push) Successful in 4m45s
Build and Test / mario-tennis (push) Successful in 5m0s
Build and Test / friends (push) Successful in 5m12s
Build and Test / splatoon (push) Successful in 5m51s
Build and Test / puyopuyo (push) Successful in 5m59s
Build and Test / fast-racing-neo (push) Successful in 6m10s
Build and Test / wii-sports-club (push) Successful in 1m15s

This commit is contained in:
Maple Nebel 2026-05-05 21:55:55 +02:00
commit 9ebf88d8eb

View file

@ -121,6 +121,9 @@ fn check_bounds_str<T: FromStr + PartialOrd>(compare: T, str: &str) -> Option<bo
if let Ok(val) = T::from_str(str) { if let Ok(val) = T::from_str(str) {
return Some(val == compare); return Some(val == compare);
} }
if str.is_empty() {
return Some(true);
}
None None
} }