Fix parsing of meta tags

main
Elbert Alias 8 years ago
parent 93f80b402b
commit fbfa4dbbb6

@ -6,6 +6,6 @@ usage: ./run <command> [<args>]
The following commands are available: The following commands are available:
build Package drivers build Package drivers
help This help text help This help text
links Create hard links to shared files in each driver links Create symlinks to shared files in each driver
validate Validate apps.json validate Validate apps.json
EOF EOF

@ -470,7 +470,14 @@ var wappalyzer = (function() {
regex = /<meta[^>]+>/ig, regex = /<meta[^>]+>/ig,
patterns = parsePatterns(w.apps[app.app].meta); patterns = parsePatterns(w.apps[app.app].meta);
if ( patterns.length ) { w.log('Function call: analyzeMeta');
if ( app.app === 'CloudCart' ) {
w.log('xxx');
w.log(patterns);
}
if ( patterns ) {
while ( match = regex.exec(html) ) { while ( match = regex.exec(html) ) {
for ( meta in patterns ) { for ( meta in patterns ) {
if ( new RegExp('(name|property)=["\']' + meta + '["\']', 'i').test(match) ) { if ( new RegExp('(name|property)=["\']' + meta + '["\']', 'i').test(match) ) {