Closed nkingsley closed 8 years ago
+1
the origin api res have a new line comment
https://github.com/Pomax/node-flickrapi/blob/master/src/utils.js#L314
that should use new more power reg or another way to deal this.
for example:
getJsonpData(body, prefix) {
const reg = new RegExp(`\\S*${prefix}\\(`)
return body.replace(reg,'').replace(/\}\)$/, '}')
}
@nkingsley, @Genffy Thank you!
+1 thanks for quick find.
Have been experiencing issues, and this just saved me! Thanks for figuring that out!
+1000
aah, Flickr... Thanks for finding this, I'll merge in the PR momentarily
v0.5.0 pushed to npm - please let me know if this comes back in some way =)
line 314 in utils.js does cleaning on the api response. It appears to be failing to clean some kind of new response.
I changed the line to:
and it's working again