From 1fd9273e3a6b0159f5d1166315b0e4b9a22d4a0f Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 10 Mar 2018 05:32:46 +0100 Subject: [PATCH] Improve jquery migrate and jquery mobile detection (#2145) * Improve jquery migrate and jquery mobile detection This can be tested [here](http://docs.python-requests.org/en/master/) - remove the `rc` thingy, since no other patter using it, and I haven't seen a single website actually using it. - jquery-migrate is valid too - Remove `.*` in favour of of an optional `.min` * Fix an unnecessary escape, thanks to @gadcam --- src/apps.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps.json b/src/apps.json index a92c51725..88e1f3c6a 100644 --- a/src/apps.json +++ b/src/apps.json @@ -11490,7 +11490,7 @@ }, "icon": "jQuery.svg", "implies": "jQuery", - "script": "jquery.migrate(?:-([\\d.]+rc\\d))?.*\\.js(?:\\?ver=([\\d.]+))?\\;version:\\1?\\1:\\2", + "script": "jquery[.-]migrate(?:-([\\d.]))?(?:\\.min)?\\.js(?:\\?ver=([\\d.]+))?\\;version:\\1?\\1:\\2", "website": "https://github.com/jquery/jquery-migrate" }, "jQuery Mobile": { @@ -11499,7 +11499,7 @@ ], "icon": "jQuery Mobile.svg", "implies": "jQuery", - "script": "jquery\\.mobile(?:-([\\d.]+rc\\d))?.*\\.js(?:\\?ver=([\\d.]+))?\\;version:\\1?\\1:\\2", + "script": "jquery[.-]mobile(?:-([\\d.]))?(?:\\.min)?\\.js(?:\\?ver=([\\d.]+))?\\;version:\\1?\\1:\\2", "website": "https://jquerymobile.com" }, "jQuery Sparklines": {