Skip to content

Commit

Permalink
fix: https schema.org replace
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Apr 17, 2020
1 parent 21406fb commit 3c643b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scrap-site.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ module.exports = async (baseUrl, options = {}) => {
is_canonical: $('link[rel="canonical"]').attr('href') == window.location.href ? 1 : 0,
og_title: $('meta[property="og:title"]').attr('content'),
og_image: $('meta[property="og:image"]').attr('content'),
schema_types: $.unique($('[itemtype]').map((i, item) => $(item).attr('itemType').replace('http://schema.org/', ''))).toArray().join(', ')
schema_types: $.unique($('[itemtype]').map((i, item) => $(item).attr('itemType').replace(/https?:\/\/schema\.org\//, ''))).toArray().join(', ')
};

for(let name in customFields) {
Expand Down

0 comments on commit 3c643b6

Please sign in to comment.