Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: return undefined if date format is not valid #8

Merged
merged 1 commit into from
May 27, 2021

Conversation

thdk
Copy link

@thdk thdk commented May 27, 2021

I've seen cases in our logs with parsing exif data of photos from early 2000' where this library throws

'TypeError: Cannot read property 'split' of undefined'.

The only place I could find where this error could be thrown should be fixed with this commit.

Added a test that fails without this fix.

Unfortuneatly I don't have access to the original photos that caused the error. I

I've seen cases in our logs with parsing exif data of photos from early 2000 where the library throws 'TypeError: Cannot read property 'split' of undefined'. The only place I could find where this error could be thrown should be fixed with this commit.

Added a test that fails without this fix.
@bpatrik
Copy link
Owner

bpatrik commented May 27, 2021

Thank you!

BTW, I'm mostly using this for my hobby project, but I plan to replace it with potentially a faster and more reliable lib: bpatrik/pigallery2#277 (comment)
One of these:

"exiftool-vendored": "14.3.0"
"exifr": "7.0.0"
"exifreader": "3.15.0"

Potentially exifr

@bpatrik bpatrik merged commit aa79eee into bpatrik:master May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants