From e9d3e51ef046f8d26f685a1dcabea36c9cd26898 Mon Sep 17 00:00:00 2001 From: Christopher Schmidt Date: Thu, 9 Jan 2020 16:34:06 +0100 Subject: [PATCH 1/4] Added Nextcloud --- src/apps.json | 11 +++++ src/icons/nextcloud.svg | 98 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 109 insertions(+) create mode 100644 src/icons/nextcloud.svg diff --git a/src/apps.json b/src/apps.json index 87b034175..4037d1ce9 100644 --- a/src/apps.json +++ b/src/apps.json @@ -7534,6 +7534,17 @@ }, "website": "https://newrelic.com" }, + "Nextcloud": { + "cats": [ + 19 + ], + "html": [ + "]*>[^<]*nextcloud_[^<]*oc_config={.*\"version\":\"([\\d.]+)\"\\;version:\\1" + ], + "icon": "nextcloud.svg", + "implies": "PHP", + "website": "https://nextcloud.com/" + }, "Next.js": { "cats": [ 18, diff --git a/src/icons/nextcloud.svg b/src/icons/nextcloud.svg new file mode 100644 index 000000000..3126a03f1 --- /dev/null +++ b/src/icons/nextcloud.svg @@ -0,0 +1,98 @@ + + + +image/svg+xml \ No newline at end of file From 8ae9de406ab995f3a1e5596dde667c0a3c568cd7 Mon Sep 17 00:00:00 2001 From: Christopher Schmidt Date: Thu, 9 Jan 2020 16:40:27 +0100 Subject: [PATCH 2/4] Also match against apple-meta-tag --- src/apps.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/apps.json b/src/apps.json index 4037d1ce9..df8d88eb6 100644 --- a/src/apps.json +++ b/src/apps.json @@ -7543,6 +7543,9 @@ ], "icon": "nextcloud.svg", "implies": "PHP", + "meta": { + "apple-itunes-app": "app-id=1125420102" + }, "website": "https://nextcloud.com/" }, "Next.js": { From 0b31ded149b7b5d5059ee5f0b7684dc042abf8a2 Mon Sep 17 00:00:00 2001 From: Christopher Schmidt Date: Thu, 9 Jan 2020 16:47:04 +0100 Subject: [PATCH 3/4] Javascript matching --- src/apps.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/apps.json b/src/apps.json index df8d88eb6..0aed90f19 100644 --- a/src/apps.json +++ b/src/apps.json @@ -7543,6 +7543,10 @@ ], "icon": "nextcloud.svg", "implies": "PHP", + "js": { + "nc_lastLogin": "", + "nc_pageLoad": "" + }, "meta": { "apple-itunes-app": "app-id=1125420102" }, From ea0540a220e54d76351e88c364bfbc21c38b1898 Mon Sep 17 00:00:00 2001 From: Christopher Schmidt Date: Thu, 9 Jan 2020 21:11:57 +0100 Subject: [PATCH 4/4] Replaced .* --- src/apps.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps.json b/src/apps.json index 0aed90f19..43898c768 100644 --- a/src/apps.json +++ b/src/apps.json @@ -7539,7 +7539,7 @@ 19 ], "html": [ - "]*>[^<]*nextcloud_[^<]*oc_config={.*\"version\":\"([\\d.]+)\"\\;version:\\1" + "]*>[^<]*nextcloud_[^<]*oc_config={[^}]*\"version\":\"([\\d.]+)\"\\;version:\\1" ], "icon": "nextcloud.svg", "implies": "PHP",