fix: sony model name does not include 'sony'

This commit is contained in:
Devin Tyler Cunningham 2025-03-21 08:40:03 -07:00 committed by GitHub
parent 03dcb35d20
commit ecc8d7f2ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,7 @@ export const formatSonyModel = (model: string) => {
version,
modifier,
// eslint-disable-next-line max-len
] = /^SONY (ILCE|ILME)-([0-9]*)([a-ln-z]*)M*([0-9]*)([a-z]*)/gi.exec(model) ?? [];
] = /^(ILCE|ILME)-([0-9]*)([a-ln-z]*)M*([0-9]*)([a-z]*)/gi.exec(model) ?? [];
const versionNumber = parseInt(version || '0');
const versionRomanNumeral = versionNumber > 1 && versionNumber < 10
? ` ${convertNumberToRomanNumeral(versionNumber)}`