From 2f98704baa3577a6a9b3c536b43fd48b38f247aa Mon Sep 17 00:00:00 2001 From: "Anders K. Madsen" Date: Sun, 21 Jun 2020 21:52:20 +0200 Subject: [PATCH 1/5] Make Livewire regex more specific Added upper bound of 512 characters between '<' and 'wire:' + look for word boundary before 'wire:'. --- src/apps.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps.json b/src/apps.json index 7db607242..81efeea13 100644 --- a/src/apps.json +++ b/src/apps.json @@ -6389,7 +6389,7 @@ 18, 19 ], - "html": "<[^>]+wire:", + "html": "<[^>]{1,512}\bwire:", "icon": "Livewire.png", "implies": "Laravel", "js": { From 28c23cd0943bd9698a6bcccf19f197779c2ff6d3 Mon Sep 17 00:00:00 2001 From: "Anders K. Madsen" Date: Sun, 21 Jun 2020 22:06:58 +0200 Subject: [PATCH 2/5] Make LocalFocus regex more specific Require word boundaries around 'localfocus'. Also fix escaping in Livewire regex. --- src/apps.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps.json b/src/apps.json index 81efeea13..81fcb6458 100644 --- a/src/apps.json +++ b/src/apps.json @@ -6389,7 +6389,7 @@ 18, 19 ], - "html": "<[^>]{1,512}\bwire:", + "html": "<[^>]{1,512}\\bwire:", "icon": "Livewire.png", "implies": "Laravel", "js": { @@ -6402,7 +6402,7 @@ "cats": [ 61 ], - "html": "]+localfocus", + "html": "]+\\blocalfocus\\b", "icon": "LocalFocus.png", "implies": [ "Angular", From b72a6491a52131400bb557be2aa299d228e3d4bf Mon Sep 17 00:00:00 2001 From: "Anders K. Madsen" Date: Sun, 21 Jun 2020 22:26:47 +0200 Subject: [PATCH 3/5] Narrow JSChart regex a bit --- src/apps.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps.json b/src/apps.json index 81fcb6458..1e3ebeeba 100644 --- a/src/apps.json +++ b/src/apps.json @@ -5483,7 +5483,7 @@ "js": { "JSChart": "" }, - "script": "jscharts.*\\.js", + "script": "jscharts.{0,32}\\.js", "website": "http://www.jscharts.com" }, "JSEcoin": { From 22b338f56a4d2dfab34301dd060de95c27415305 Mon Sep 17 00:00:00 2001 From: "Anders K. Madsen" Date: Sun, 21 Jun 2020 22:27:16 +0200 Subject: [PATCH 4/5] Narrow Leaflet regex a little --- src/apps.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps.json b/src/apps.json index 1e3ebeeba..22c6d4555 100644 --- a/src/apps.json +++ b/src/apps.json @@ -6134,7 +6134,7 @@ "L.PosAnimation": "", "L.version": "^(.+)$\\;version:\\1\\;confidence:0" }, - "script": "leaflet.*\\.js", + "script": "leaflet.{0,32}\\.js", "website": "http://leafletjs.com" }, "Less": { From 61f391f4f43969c572b151f46e0f2f02ed50477c Mon Sep 17 00:00:00 2001 From: "Anders K. Madsen" Date: Sun, 21 Jun 2020 22:27:58 +0200 Subject: [PATCH 5/5] Narrow Lightbox regex a bit --- src/apps.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps.json b/src/apps.json index 22c6d4555..4a55a0a45 100644 --- a/src/apps.json +++ b/src/apps.json @@ -6193,7 +6193,7 @@ "cpe": "cpe:/a:lightbox_photo_gallery_project:lightbox_photo_gallery", "html": "]*href=\"[^\"]+lightbox(?:\\.min)?\\.css", "icon": "Lightbox.png", - "script": "lightbox.*\\.js", + "script": "lightbox(?:-plus-jquery)?.{0,32}\\.js", "website": "http://lokeshdhakar.com/projects/lightbox2/" }, "Lightspeed eCom": {