From 9d7531b6cc7a87946280906808afb0053abf24b2 Mon Sep 17 00:00:00 2001 From: Daryl Chan Date: Sat, 20 Dec 2014 14:27:22 +0800 Subject: [PATCH 1/4] Added better detection for ZURB Foundation - Checks for divs with class value of "columns" used by Foundation - Tested working on jquery.com --- share/apps.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/apps.json b/share/apps.json index dd0b7974f..57cb42b76 100644 --- a/share/apps.json +++ b/share/apps.json @@ -4247,7 +4247,8 @@ "ZURB Foundation": { "website": "foundation.zurb.com", "cats": [ 18 ], - "html": "]+foundation[^>\"]+css" + "html": "]+foundation[^>\"]+css", + "html": " Date: Sat, 20 Dec 2014 17:07:00 +0800 Subject: [PATCH 2/4] Better detection for Foundation - Detected 17 websites from a list of 30 websites using Foundation (previously only detected 7) - Only detects websites using Foundation 4 and above (new small-x, medium-x, large-x syntax) --- share/apps.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/share/apps.json b/share/apps.json index 57cb42b76..13663ee66 100644 --- a/share/apps.json +++ b/share/apps.json @@ -4247,8 +4247,7 @@ "ZURB Foundation": { "website": "foundation.zurb.com", "cats": [ 18 ], - "html": "]+foundation[^>\"]+css", - "html": "]+foundation[^>\"]+css", " Date: Sun, 21 Dec 2014 12:30:51 +0800 Subject: [PATCH 3/4] Updated regex --- share/apps.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/apps.json b/share/apps.json index 13663ee66..e9db0363b 100644 --- a/share/apps.json +++ b/share/apps.json @@ -4247,7 +4247,7 @@ "ZURB Foundation": { "website": "foundation.zurb.com", "cats": [ 18 ], - "html": [ "]+foundation[^>\"]+css", "]+foundation[^>\"]+css", "
]*class=\"[^\"]*(?:small|medium|large)-\\d{1,2} columns ] } } } From 07e12c59ddbab90c315fe9f48413758f403da40b Mon Sep 17 00:00:00 2001 From: Daryl Chan Date: Sun, 21 Dec 2014 12:32:29 +0800 Subject: [PATCH 4/4] Updated regex again (typo) --- share/apps.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/apps.json b/share/apps.json index e9db0363b..3e1c18ecf 100644 --- a/share/apps.json +++ b/share/apps.json @@ -4247,7 +4247,7 @@ "ZURB Foundation": { "website": "foundation.zurb.com", "cats": [ 18 ], - "html": [ "]+foundation[^>\"]+css", "
]*class=\"[^\"]*(?:small|medium|large)-\\d{1,2} columns ] + "html": [ "]+foundation[^>\"]+css", "
]*class=\"[^\"]*(?:small|medium|large)-\\d{1,2} columns" ] } } }