From 69ee584c62e0bfd8da51320290628b797ca34b9d Mon Sep 17 00:00:00 2001 From: Camille Barneaud Date: Sat, 2 Feb 2013 01:15:33 +0100 Subject: [PATCH] Version detection patterns Add patern to detect version for the first quarter of the apps.json --- share/apps.json | 69 ++++++++++++++++++++++++++----------------------- 1 file changed, 36 insertions(+), 33 deletions(-) diff --git a/share/apps.json b/share/apps.json index 694e4acf0..09ddb9b86 100755 --- a/share/apps.json +++ b/share/apps.json @@ -52,7 +52,7 @@ }, "2z Project": { "cats": [ 1 ], - "meta": { "generator": "2z project" } + "meta": { "generator": "2z project ([\\d\\.]+);version:\\1" } }, "3dCart": { "cats": [ 1, 6 ], @@ -66,7 +66,7 @@ }, "AddThis": { "cats": [ 5 ], - "script": "addthis\\.com/js", + "script": "addthis\\.com/js/(\d+)?;version:\\1", "env": "^addthis" }, "Adobe CQ5": { @@ -101,12 +101,12 @@ "Amiro.CMS": { "cats": [ 1 ], "meta": { "generator": "Amiro" }, - "html": "system_js\\.php\\?script=", + "html": "system_(js\\.php\\?script=|css\\.php\\?styles)[^"]+cv=([\d\.]+)\\;version:\\2", "implies": "PHP" }, "AMPcms": { "cats": [ 1 ], - "headers": { "X-AMP-Version": ".*", "Set-Cookie": "AMP=" }, + "headers": { "X-AMP-Version": "([\\d\\.]+)\\;version=\\1", "Set-Cookie": "^AMP=" }, "env": "^amp_js_init$", "implies": "PHP" }, @@ -116,7 +116,7 @@ }, "AOLserver": { "cats": [ 22 ], - "headers": { "Server": "AOLserver" } + "headers": { "Server": "AOLserver/?([\d\.]+)?\\;version:\\1" } }, "Apache": { "cats": [ 22 ], @@ -130,11 +130,11 @@ }, "Apache Tomcat": { "cats": [ 22 ], - "headers": { "Server": "Apache-Coyote" } + "headers": { "Server": "Apache-Coyote/?([\\d\\.]+)?\\;version:\\1" } }, "Apache Traffic Server": { "cats": [ 22 ], - "headers": { "Server": "YTS" } + "headers": { "Server": "ATS/?([\\d\\.]+)?\\;version:\\1" } }, "Arc Forum": { "cats": [ 2 ], @@ -142,12 +142,12 @@ }, "AsciiDoc": { "cats": [ 1, 20, 27 ], - "meta": { "generator": "^AsciiDoc" }, + "meta": { "generator": "^AsciiDoc ([\\d\\.]+)\\;version:\\1" }, "env": "^asciidoc$" }, "ATG Web Commerce": { "cats": [ 6 ], - "headers": { "X-ATG-Version": "ATG" }, + "headers": { "X-ATG-Version": "(ATGPlatform/([\\d\\.]+))?\\;version:\\2" }, "html": "<[^>]+_DARGS" }, "Atlassian Confluence": { @@ -167,7 +167,7 @@ }, "AWStats": { "cats": [ 10 ], - "meta": { "generator": "AWStats" }, + "meta": { "generator": "AWStats ([\\d\\.]+( \\(build [\\d\\.]+\\))?)\\;version:\\1" }, "implies": "Perl" }, "Backbone.js": { @@ -178,12 +178,12 @@ }, "Banshee": { "cats": [ 1, 18 ], - "html": "Built upon the ]+banshee-php\\.org", + "html": "Built upon the ]+banshee-php\\.org/\">[a-z]+(v([\\d\\.]+))?\\;version:\\2", "implies": "PHP" }, "BIGACE": { "cats": [ 1 ], - "meta": { "generator": "BIGACE" }, + "meta": { "generator": "BIGACE ([\\d\\.]+)\\;version:\\1" }, "html": "Powered by ]+BIGACE|