Skip to content
Snippets Groups Projects
Commit b328c000 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Get meta tags from html in wrong order

parent 098eb546
No related branches found
No related tags found
No related merge requests found
......@@ -86,6 +86,9 @@ OEmbed.getUrlMeta = (url, withFragment) ->
content.body.replace /<meta.*(?:name|property)=['"]([^'"]*)['"].*content=['"]([^'"]*)['"].*>/gmi, (meta, name, value) ->
metas[changeCase.camelCase(name)] = value
content.body.replace /<meta.*content=['"]([^'"]*)['"].*(?:name|property)=['"]([^'"]*)['"].*>/gmi, (meta, name, value) ->
metas[changeCase.camelCase(name)] = value
if metas.fragment is '!' and not withFragment?
return OEmbed.getUrlMeta url, true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment