Loosen Pixel lens regex
This commit is contained in:
parent
075f104367
commit
b1bbd8935a
@ -27,7 +27,7 @@ export const formatGoogleLensText = (
|
|||||||
focalLength,
|
focalLength,
|
||||||
_aperture,
|
_aperture,
|
||||||
// eslint-disable-next-line max-len
|
// eslint-disable-next-line max-len
|
||||||
] = (/^(Pixel (?:[0-9])+(?: Pro)*) (.+) ([0-9\.]+)mm.*?f\/([0-9\.]+)/gi.exec(model) ?? []);
|
] = (/^(Pixel (?:[0-9a-z])+(?: Pro)*) (.+) ([0-9\.]+)mm.*?f\/([0-9\.]+)/gi.exec(model) ?? []);
|
||||||
|
|
||||||
if (phoneName && lensVariant && focalLength) {
|
if (phoneName && lensVariant && focalLength) {
|
||||||
const lensName = `${capitalizeWords(lensVariant)} (${focalLength}mm)`;
|
const lensName = `${capitalizeWords(lensVariant)} (${focalLength}mm)`;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user