From 9c2835e577dc935aaf5af043b81a1c69e1cbd1a6 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 24 Nov 2018 03:13:34 +0000 Subject: [PATCH] Refactor a bit chartjs detection (#2518) --- src/apps.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/apps.json b/src/apps.json index 8ca588de0..ef741967a 100644 --- a/src/apps.json +++ b/src/apps.json @@ -1666,13 +1666,12 @@ "chart.ctx.bezierCurveTo": "" }, "script": [ - "Chart(?:\\.bundle)?(?:\\.min)?\\.js\\;confidence:50", + "/Chart(?:\\.bundle)?(?:\\.min)?\\.js\\;confidence:75", "chartjs\\.org/dist/([\\d.]+(?:-[^/]+)?|master|latest)/Chart.*\\.js\\;version:\\1", "cdnjs\\.cloudflare\\.com/ajax/libs/Chart\\.js/([\\d.]+(?:-[^/]+)?)/Chart.*\\.js\\;version:\\1", - "cdn\\.jsdelivr\\.net/npm/chart\\.js@([\\d.]+(?:-[^/]+)?|latest)/dist/Chart.*\\.js\\;version:\\1", - "cdn\\.jsdelivr\\.net/gh/chartjs/Chart\\.js@([\\d.]+(?:-[^/]+)?|latest)/dist/Chart.*\\.js\\;version:\\1" + "cdn\\.jsdelivr\\.net/(?:npm|gh/chartjs)/chart\\.js@([\\d.]+(?:-[^/]+)?|latest)/dist/Chart.*\\.js\\;version:\\1" ], - "website": "http://www.chartjs.org" + "website": "https://www.chartjs.org" }, "Chartbeat": { "cats": [