diff --git a/bin/wappalyzer-build b/bin/wappalyzer-build index 2b291f8dc..3f973b736 100755 --- a/bin/wappalyzer-build +++ b/bin/wappalyzer-build @@ -24,7 +24,7 @@ node $WAPPALYZER_NODE_PATH/node_modules/jsonlint/lib/cli.js -ist $'\t' $WAPPALYZ echo "Compressing PNG and SVG icons..." -node $WAPPALYZER_NODE_PATH/node_modules/imagemin-cli/cli.js $WAPPALYZER_ROOT/src/icons/* --out-dir $WAPPALYZER_ROOT/src/icons +node $WAPPALYZER_NODE_PATH/node_modules/imagemin-cli/cli.js $WAPPALYZER_ROOT/src/icons/* --out-dir $WAPPALYZER_ROOT/src/icons 2>&1 > /dev/null echo "Converting SVG icons to PNG..." diff --git a/bin/wappalyzer-validate-regex b/bin/wappalyzer-validate-regex index 36012c57a..f7976c116 100755 --- a/bin/wappalyzer-validate-regex +++ b/bin/wappalyzer-validate-regex @@ -80,7 +80,7 @@ for ( app in json.apps ) { } }); - if ( /[a-z]+:\/\//i.test(json.apps[app].website) ) { - throw new Error('Do not include the protocol in the website URL\n' + app + ': ' + json.apps[app].website); + if ( !/^https?:\/\//i.test(json.apps[app].website) ) { + throw new Error('Invalid website URL\n' + app + ': ' + json.apps[app].website); } } diff --git a/src/apps.json b/src/apps.json index 2b8dc58de..ca821064b 100755 --- a/src/apps.json +++ b/src/apps.json @@ -6,8 +6,8 @@ ], "icon": "1and1.svg", "implies": "PHP", - "url": "/shop/catalog/browse\\?sessid=", - "website": "1and1.com" + "url": "/shop/catalog/browse\\?sessid=" + "website": "http://1and1.com" }, "1C-Bitrix": { "cats": [ @@ -21,7 +21,7 @@ "icon": "1C-Bitrix.png", "implies": "PHP", "script": "1c-bitrix", - "website": "www.1c-bitrix.ru" + "website": "http://www.1c-bitrix.ru" }, "2z Project": { "cats": [ @@ -31,7 +31,7 @@ "meta": { "generator": "2z project ([\\d.]+)\\;version:\\1" }, - "website": "2zproject-cms.ru" + "website": "http://2zproject-cms.ru" }, "3DM": { "cats": [ @@ -40,7 +40,7 @@ "html": "