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
main
jvoisin 7 years ago committed by Elbert Alias
parent f099491bd3
commit 1fd9273e3a

@ -11490,7 +11490,7 @@
}, },
"icon": "jQuery.svg", "icon": "jQuery.svg",
"implies": "jQuery", "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" "website": "https://github.com/jquery/jquery-migrate"
}, },
"jQuery Mobile": { "jQuery Mobile": {
@ -11499,7 +11499,7 @@
], ],
"icon": "jQuery Mobile.svg", "icon": "jQuery Mobile.svg",
"implies": "jQuery", "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" "website": "https://jquerymobile.com"
}, },
"jQuery Sparklines": { "jQuery Sparklines": {

Loading…
Cancel
Save