fix(Spoof SIM country): Validate patch option value correctly

This commit is contained in:
oSumAtrIX 2023-12-24 13:39:37 +01:00
parent bb386d0fdf
commit 8105463791
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -46,7 +46,7 @@ object SpoofSimCountryPatch : AbstractTransformInstructionsPatch<Pair<Int, Strin
title,
"ISO-3166-1 alpha-2 country code equivalent for the SIM provider's country code.",
false,
validator = { it: String? -> it?.uppercase() in countries.keys || it == null }
validator = { it: String? -> it == null || it.uppercase() in countries.values }
)
override fun filterMap(