From a64fa26eb156556d1266ab11ed92674cfd131d2b Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 10 Mar 2018 05:30:55 +0100 Subject: [PATCH] Improve a bit highligthjs detection (#2148) * Improve a bit highligthjs detection - Add a `js`-based detection - Simplify the `script` pattern - The `script` can now get the version * Add a missing `?` --- src/apps.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/apps.json b/src/apps.json index 4d7e4cfa1..cad159fc8 100644 --- a/src/apps.json +++ b/src/apps.json @@ -4098,8 +4098,11 @@ "cats": [ 19 ], + "js": { + "hljs.listLanguage": "" + }, "icon": "Highlight.js.png", - "script": "/highlight\\.js/[\\d.]+?/highlight\\.min\\.js", + "script": "/(?:([\\d.])+/)?highlight(?:\\.min)?\\.js\\;version:\\1", "website": "https://highlightjs.org/" }, "Highstock": {