Added null check back in

main
Elbert Alias 12 years ago
parent adc9d6eae5
commit 23fd75daa0

@ -302,7 +302,7 @@ var wappalyzer = (function() {
if ( typeof data.html === 'string' && data.html ) {
match = data.html.match(/<html[^>]*[: ]lang="([a-z]{2}((-|_)[A-Z]{2})?)"/i);
if ( match.length ) {
if ( match && match.length ) {
w.ping.hostnames[hostname].meta['language'] = match[1];
}

@ -302,7 +302,7 @@ var wappalyzer = (function() {
if ( typeof data.html === 'string' && data.html ) {
match = data.html.match(/<html[^>]*[: ]lang="([a-z]{2}((-|_)[A-Z]{2})?)"/i);
if ( match.length ) {
if ( match && match.length ) {
w.ping.hostnames[hostname].meta['language'] = match[1];
}

@ -302,7 +302,7 @@ var wappalyzer = (function() {
if ( typeof data.html === 'string' && data.html ) {
match = data.html.match(/<html[^>]*[: ]lang="([a-z]{2}((-|_)[A-Z]{2})?)"/i);
if ( match.length ) {
if ( match && match.length ) {
w.ping.hostnames[hostname].meta['language'] = match[1];
}

@ -302,7 +302,7 @@ var wappalyzer = (function() {
if ( typeof data.html === 'string' && data.html ) {
match = data.html.match(/<html[^>]*[: ]lang="([a-z]{2}((-|_)[A-Z]{2})?)"/i);
if ( match.length ) {
if ( match && match.length ) {
w.ping.hostnames[hostname].meta['language'] = match[1];
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

@ -302,7 +302,7 @@ var wappalyzer = (function() {
if ( typeof data.html === 'string' && data.html ) {
match = data.html.match(/<html[^>]*[: ]lang="([a-z]{2}((-|_)[A-Z]{2})?)"/i);
if ( match.length ) {
if ( match && match.length ) {
w.ping.hostnames[hostname].meta['language'] = match[1];
}

@ -302,7 +302,7 @@ var wappalyzer = (function() {
if ( typeof data.html === 'string' && data.html ) {
match = data.html.match(/<html[^>]*[: ]lang="([a-z]{2}((-|_)[A-Z]{2})?)"/i);
if ( match.length ) {
if ( match && match.length ) {
w.ping.hostnames[hostname].meta['language'] = match[1];
}

@ -302,7 +302,7 @@ var wappalyzer = (function() {
if ( typeof data.html === 'string' && data.html ) {
match = data.html.match(/<html[^>]*[: ]lang="([a-z]{2}((-|_)[A-Z]{2})?)"/i);
if ( match.length ) {
if ( match && match.length ) {
w.ping.hostnames[hostname].meta['language'] = match[1];
}