mirror of
https://github.com/revanced/revanced-patches
synced 2024-11-19 04:39:23 +01:00
fix(Spoof SIM country): Validate patch option value correctly
This commit is contained in:
parent
bb386d0fdf
commit
8105463791
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user