Skip to content

Commit 4fd77b1

Browse files
committed
fix(Spoof SIM country): Validate patch option value correctly
1 parent 47aa56a commit 4fd77b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/app/revanced/patches/all/telephony/sim/spoof/SpoofSimCountryPatch.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ object SpoofSimCountryPatch : AbstractTransformInstructionsPatch<Pair<Int, Strin
4646
title,
4747
"ISO-3166-1 alpha-2 country code equivalent for the SIM provider's country code.",
4848
false,
49-
validator = { it: String? -> it?.uppercase() in countries.keys || it == null }
49+
validator = { it: String? -> it == null || it.uppercase() in countries.values }
5050
)
5151

5252
override fun filterMap(

0 commit comments

Comments
 (0)