From b1f6213c58d8c4db73abefb2f4bd9c4f1a3a89ba Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 2 Feb 2017 11:28:22 +0100 Subject: [PATCH] Use `property` as `meta` key too Currently, only `name` is considered as a valid key for , but more and more website, trying to be mobile-friendly, are using 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) --- src/wappalyzer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wappalyzer.js b/src/wappalyzer.js index 565db1af4..e763eb5b0 100644 --- a/src/wappalyzer.js +++ b/src/wappalyzer.js @@ -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) {