From 955aa4a5cf2ac83fbd791e5f8f151a411e1c8ff0 Mon Sep 17 00:00:00 2001 From: Brooks Lybrand Date: Tue, 15 Oct 2024 14:53:04 -0500 Subject: [PATCH 1/2] Fix React Router detection and update Remix implies field --- src/technologies/r.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/technologies/r.json b/src/technologies/r.json index dcc38b622..5a61dca36 100644 --- a/src/technologies/r.json +++ b/src/technologies/r.json @@ -633,9 +633,9 @@ "icon": "React Router.svg", "implies": "React", "oss": true, - "scriptSrc": [ - "(?:/react-router(@|/)([\\d.]+)(?:/[a-z]+)?)?/react-router(?:\\.min)?\\.js\\;version:\\2" - ], + "js": { + "__reactRouterVersion": "" + }, "website": "https://reactrouter.com" }, "Reactive": { @@ -1337,7 +1337,8 @@ "description": "Remix is a React framework used for server-side rendering (SSR).", "icon": "Remix.svg", "implies": [ - "React" + "React", + "React Router" ], "js": { "__remixContext": "" From 42dcb40da76bfe0ac9c36977c46994fa4ae8343e Mon Sep 17 00:00:00 2001 From: Barry Pollard Date: Tue, 15 Oct 2024 21:09:03 +0100 Subject: [PATCH 2/2] Update src/technologies/r.json --- src/technologies/r.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/technologies/r.json b/src/technologies/r.json index 5a61dca36..01bb6a855 100644 --- a/src/technologies/r.json +++ b/src/technologies/r.json @@ -634,7 +634,7 @@ "implies": "React", "oss": true, "js": { - "__reactRouterVersion": "" + "__reactRouterVersion": "([\\d\\.]+)\\;version:\\1" }, "website": "https://reactrouter.com" },