Use `property` as `meta` key too

Currently, only `name` is considered as a valid key for <meta>,
but more and more website, trying to be mobile-friendly,
are using <meta> tags without `name`, but with a `property`
instead. This commit changes this behaviour.

This idea emerged from [this MR](https://github.com/AliasIO/Wappalyzer/pull/1321)
main
jvoisin 8 years ago
parent b0bc61bca7
commit b1f6213c58

@ -329,7 +329,7 @@ var wappalyzer = (function() {
for ( meta in w.apps[app][type] ) {
profiler.checkPoint(app, type, regexMeta);
if ( new RegExp('name=["\']' + meta + '["\']', 'i').test(match) ) {
if ( new RegExp('(name|property)=["\']' + meta + '["\']', 'i').test(match) ) {
content = match.toString().match(/content=("|')([^"']+)("|')/i);
parse(w.apps[app].meta[meta]).forEach(function(pattern) {

Loading…
Cancel
Save