_getJSONLD doesn't handle https://schema.org/
with trailing /
#936
Labels
metadata
Issues with the metadata generated by readability
https://schema.org/
with trailing /
#936
Example: https://www.theparisreview.org/fiction/8364/camouflage-adania-shibli
On that site, Readability fails to extract the author, despite it being in the json-ld:
The problem is the regex that Readability uses to match against the
@context
matcheshttps://schema.org
but it doesn't matchhttps://schema.org/
.Updating the regex as follows (additional
\/?
) fixes the issue:The text was updated successfully, but these errors were encountered: