From c8541b3cb9e1f4c2a1410507060005372e8c22f1 Mon Sep 17 00:00:00 2001 From: mlec <42201667+mlec1@users.noreply.github.com> Date: Fri, 21 Jun 2024 13:02:55 +0200 Subject: [PATCH] refactor: Make all html fields an array --- schema.json | 20 +++---- src/technologies/a.json | 44 +++++++++++---- src/technologies/b.json | 32 ++++++++--- src/technologies/c.json | 20 +++++-- src/technologies/d.json | 32 ++++++++--- src/technologies/e.json | 24 ++++++-- src/technologies/f.json | 53 +++++++++++++----- src/technologies/g.json | 40 ++++++++++---- src/technologies/h.json | 20 +++++-- src/technologies/i.json | 28 +++++++--- src/technologies/j.json | 28 +++++++--- src/technologies/k.json | 22 ++++++-- src/technologies/l.json | 40 ++++++++++---- src/technologies/m.json | 71 ++++++++++++++++++------ src/technologies/n.json | 10 +++- src/technologies/o.json | 54 +++++++++++++----- src/technologies/p.json | 72 ++++++++++++++++++------ src/technologies/q.json | 12 +++- src/technologies/r.json | 39 +++++++++---- src/technologies/s.json | 118 ++++++++++++++++++++++++++++++---------- src/technologies/t.json | 50 ++++++++++++----- src/technologies/u.json | 16 ++++-- src/technologies/v.json | 36 +++++++++--- src/technologies/w.json | 49 ++++++++++++----- src/technologies/x.json | 24 ++++++-- src/technologies/y.json | 32 ++++++++--- src/technologies/z.json | 12 +++- 27 files changed, 738 insertions(+), 260 deletions(-) diff --git a/schema.json b/schema.json index fcc62137..b5b53af6 100644 --- a/schema.json +++ b/schema.json @@ -9,7 +9,10 @@ "type": "object", "additionalProperties": { "additionalProperties": false, - "required": ["cats","website"], + "required": [ + "cats", + "website" + ], "properties": { "description": { "type": "string", @@ -102,17 +105,10 @@ } }, "html": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/non-empty-non-blank-string" - } - }, - { - "$ref": "#/definitions/non-empty-non-blank-string" - } - ] + "type": "array", + "items": { + "$ref": "#/definitions/non-empty-non-blank-string" + } }, "text": { "oneOf": [ diff --git a/src/technologies/a.json b/src/technologies/a.json index f243935d..960442fd 100644 --- a/src/technologies/a.json +++ b/src/technologies/a.json @@ -3,7 +3,9 @@ "cats": [ 25 ], - "html": "]*>", + "html": [ + "]*>" + ], "icon": "A-Frame.svg", "implies": "Three.js", "js": { @@ -1479,7 +1481,9 @@ "headers": { "Cookie": "CFTOKEN=" }, - "html": "", + "html": [ + "" + ], "icon": "Business Catalyst.svg", "scriptSrc": "CatalystScripts", "website": "https://businesscatalyst.com" diff --git a/src/technologies/c.json b/src/technologies/c.json index aead998c..45bdc62e 100644 --- a/src/technologies/c.json +++ b/src/technologies/c.json @@ -2549,7 +2549,9 @@ "exp_tracker": "" }, "cpe": "cpe:2.3:a:codeigniter:codeigniter:*:*:*:*:*:*:*:*", - "html": "]+name=\"ci_csrf_token\"\\;version:2+", + "html": [ + "]+name=\"ci_csrf_token\"\\;version:2+" + ], "icon": "CodeIgniter.png", "implies": "PHP", "website": "https://codeigniter.com" @@ -3341,7 +3343,9 @@ "headers": { "x-contentful-request-id": "" }, - "html": "<[^>]+(?:assets|downloads|images|videos)\\.(?:ct?fassets\\.net|contentful\\.com)", + "html": [ + "<[^>]+(?:assets|downloads|images|videos)\\.(?:ct?fassets\\.net|contentful\\.com)" + ], "icon": "Contentful.svg", "pricing": [ "mid", @@ -3678,7 +3682,9 @@ "website": "https://cookie-script.com" }, "Cookie Seal": { - "cats": [67], + "cats": [ + 67 + ], "description": "Cookie Seal is a tool or system that helps you manage and configure the use of cookies on your website in accordance with data protection laws, ensuring compliance with relevant regulations.", "icon": "Cookie Seal.svg", "js": { @@ -3800,7 +3806,9 @@ ], "cpe": "cpe:2.3:a:coppermine-gallery:coppermine_photo_gallery:*:*:*:*:*:*:*:*", "description": "Coppermine is an open-source image gallery application.", - "html": "", + "html": [ + "" + ], "icon": "Docker.svg", "website": "https://www.docker.com/" }, @@ -1246,7 +1252,9 @@ "headers": { "X-Powered-By": "Dokeos" }, - "html": "(?:Portal ]+>Dokeos|@import \"[^\"]+dokeos_blue)", + "html": [ + "(?:Portal ]+>Dokeos|@import \"[^\"]+dokeos_blue)" + ], "icon": "Dokeos.png", "implies": [ "PHP", @@ -1598,7 +1606,9 @@ ], "cpe": "cpe:2.3:a:doxygen:doxygen:*:*:*:*:*:*:*:*", "description": "Doxygen is a documentation generator, a tool for writing software reference documentation.", - "html": "(?:||", + "html": [ + "" + ], "icon": "Java.svg", "website": "https://docs.oracle.com/javase/8/docs/technotes/tools/windows/javadoc.html" }, @@ -302,7 +308,9 @@ "headers": { "X-Jenkins": "([\\d.]+)\\;version:\\1" }, - "html": "Jenkins ver\\. ([\\d.]+)\\;version:\\1", + "html": [ + "Jenkins ver\\. ([\\d.]+)\\;version:\\1" + ], "icon": "Jenkins.png", "implies": "Java", "js": { @@ -342,7 +350,9 @@ "cats": [ 6 ], - "html": "<(?:div|aside) id=\"jetshop-branding\">", + "html": [ + "<(?:div|aside) id=\"jetshop-branding\">" + ], "icon": "Jetshop.png", "js": { "JetshopData": "" @@ -574,7 +584,9 @@ "headers": { "X-Content-Encoded-By": "Joomla! ([\\d.]+)\\;version:\\1" }, - "html": "(?:]+id=\"wrapper_r\"|<(?:link|script)[^>]+(?:feed|components)/com_|]+class=\"pill)\\;confidence:50", + "html": [ + "(?:]+id=\"wrapper_r\"|<(?:link|script)[^>]+(?:feed|components)/com_|]+class=\"pill)\\;confidence:50" + ], "icon": "Joomla.svg", "implies": "PHP", "js": { @@ -997,7 +1009,9 @@ 26 ], "description": "jQuery PJAX is a plugin that uses AJAX and pushState.", - "html": "]+data-pjax-container", + "html": [ + "]+data-pjax-container" + ], "implies": "jQuery", "js": { "jQuery.pjax": "" diff --git a/src/technologies/k.json b/src/technologies/k.json index 1b1c390d..c658ddfc 100644 --- a/src/technologies/k.json +++ b/src/technologies/k.json @@ -16,7 +16,9 @@ "cats": [ 19 ], - "html": "", + "html": [ + "" + ], "icon": "Lightspeed.svg", "pricing": [ "low" @@ -957,7 +965,9 @@ "headers": { "Content-Security-Policy": "px\\.ads\\.linkedin\\.com" }, - "html": "]*src=\"[^/]*//[^/]*px\\.ads\\.linkedin\\.com", + "html": [ + "]*src=\"[^/]*//[^/]*px\\.ads\\.linkedin\\.com" + ], "icon": "Linkedin.svg", "website": "https://business.linkedin.com/marketing-solutions/ads" }, @@ -1115,7 +1125,9 @@ "cookies": { "LithiumVisitor": "" }, - "html": " ]+Powered by Lithium", + "html": [ + " ]+Powered by Lithium" + ], "icon": "Lithium.png", "implies": "PHP", "js": { @@ -1343,7 +1355,9 @@ 15 ], "description": "Livefyre is a platform that integrates with the social web to boost social interaction.", - "html": "<[^>]+(?:id|class)=\"livefyre", + "html": [ + "<[^>]+(?:id|class)=\"livefyre" + ], "icon": "Livefyre.png", "js": { "FyreLoader": "", @@ -1389,7 +1403,9 @@ 19 ], "description": "Livewire is a full-stack Laravel framework for building dynamic interfaces.", - "html": "<[^>]{1,512}\\bwire:", + "html": [ + "<[^>]{1,512}\\bwire:" + ], "icon": "Livewire.svg", "implies": "Laravel", "js": { @@ -1443,7 +1459,9 @@ "cats": [ 25 ], - "html": "]+\\blocalfocus\\b", + "html": [ + "]+\\blocalfocus\\b" + ], "icon": "LocalFocus.png", "implies": [ "Angular", @@ -1512,7 +1530,9 @@ "cats": [ 1 ], - "html": "]*/sites/[a-z\\d]{24}/theme/stylesheets", + "html": [ + "]*/sites/[a-z\\d]{24}/theme/stylesheets" + ], "icon": "LocomotiveCMS.png", "implies": [ "Ruby on Rails", diff --git a/src/technologies/m.json b/src/technologies/m.json index 691a48be..501d1f1a 100644 --- a/src/technologies/m.json +++ b/src/technologies/m.json @@ -192,7 +192,7 @@ "scriptSrc": "morphext(?:\\.min)?\\.js(?:\\?ver=((?:\\d+\\.)+\\d+))?\\;version:\\1", "website": "https://morphext.fyianlai.com/" }, - "Morris.js": { + "Morris.js": { "cats": [ 59 ], @@ -206,7 +206,10 @@ "website": "https://morrisjs.github.io/morris.js/" }, "Moxie": { - "cats": [5, 68], + "cats": [ + 5, + 68 + ], "description": "Pollyfills for XHR2 and File API", "website": "https://github.com/moxiecode/moxie", "oss": true, @@ -1171,7 +1174,9 @@ 66 ], "description": "Material Design Lite is a library of components for web developers.", - "html": "]* href=\"[^\"]*material(?:\\.[\\w]+-[\\w]+)?(?:\\.min)?\\.css", + "html": [ + "]* href=\"[^\"]*material(?:\\.[\\w]+-[\\w]+)?(?:\\.min)?\\.css" + ], "icon": "Material Design Lite.png", "js": { "MaterialIconToggle": "" @@ -1257,7 +1262,9 @@ 2 ], "cpe": "cpe:2.3:a:jenkins:mattermost:*:*:*:*:*:*:*:*", - "html": "", + "html": [ + "" + ], "icon": "mattermost.png", "implies": [ "Go", @@ -1501,7 +1508,9 @@ "cats": [ 5 ], - "html": "(?: