SIGN IN SIGN UP

Fix modelSupport where prefix overlaps with different hardware chips (#326)

Before this change, the code was matching first prefix which could lead to selecting incorrect configuration.
For example, iPad 13,1 (A14) is prefix for iPad13,10, iPad13,11, iPad13,16, and iPad13,17 (M2).

Fixing this issue by using longest prefix match.

Tested with a unit test that covers all iPad / iPhone devices.
A
Andrey Leonov committed
cd16844c270b7e78bf21d24b1d9ff7bc88e904e4
Parent: 11a1fab
Committed by GitHub <noreply@github.com> on 4/22/2025, 5:54:37 PM