Skip to content

Commit

Permalink
fix(Spoof SIM country): Validate patch option value correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Dec 24, 2023
1 parent bb386d0 commit 8105463
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8105463

Please sign in to comment.