Refactor a bit chartjs detection (#2518)

main
jvoisin 6 years ago committed by Elbert Alias
parent 19ea96d6a1
commit 9c2835e577

@ -1666,13 +1666,12 @@
"chart.ctx.bezierCurveTo": "" "chart.ctx.bezierCurveTo": ""
}, },
"script": [ "script": [
"Chart(?:\\.bundle)?(?:\\.min)?\\.js\\;confidence:50", "/Chart(?:\\.bundle)?(?:\\.min)?\\.js\\;confidence:75",
"chartjs\\.org/dist/([\\d.]+(?:-[^/]+)?|master|latest)/Chart.*\\.js\\;version:\\1", "chartjs\\.org/dist/([\\d.]+(?:-[^/]+)?|master|latest)/Chart.*\\.js\\;version:\\1",
"cdnjs\\.cloudflare\\.com/ajax/libs/Chart\\.js/([\\d.]+(?:-[^/]+)?)/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/(?:npm|gh/chartjs)/chart\\.js@([\\d.]+(?:-[^/]+)?|latest)/dist/Chart.*\\.js\\;version:\\1"
"cdn\\.jsdelivr\\.net/gh/chartjs/Chart\\.js@([\\d.]+(?:-[^/]+)?|latest)/dist/Chart.*\\.js\\;version:\\1"
], ],
"website": "http://www.chartjs.org" "website": "https://www.chartjs.org"
}, },
"Chartbeat": { "Chartbeat": {
"cats": [ "cats": [