thebeet / idevicekit

NodeJs wrapper for libimobiledevice
Other
29 stars 7 forks source link

XS, XSMax, iPad Pro serial ID regex #5

Closed albertJkt closed 5 years ago

albertJkt commented 5 years ago

let _checkSerial = (serial) => { return /^[a-z0-9]{40,40}$/.test(serial); }; This works only till A11 SoC.

let _checkSerial = (serial) => { return /^[a-z0-9]{40,40}$/ || /^[A-Z0-9]{8}-[A-Z0-9]{16}$/i.test(serial); }; - this should fix the issue.

thebeet commented 5 years ago

https://github.com/thebeet/idevicekit/commit/2ef115af16b33cff4468d3da03df4d19a236f507

ISSUE fixed, Thank You :)