Improve the detection of jquery-migrate (#2426)

- Detect legacy version of jquery version.
  This can be tested [here](https://snuffleupagus.readthedocs.io/features.html)
- Fix the regexp in the `script` detection
main
jvoisin 6 years ago committed by Elbert Alias
parent 33ddee6b55
commit 4bee3d3e62

@ -11765,9 +11765,11 @@
"icon": "jQuery.svg",
"implies": "jQuery",
"js": {
"jQuery.migrateVersion": "([\\d.]+)\\;version:\\1"
"jQuery.migrateVersion": "([\\d.]+)\\;version:\\1",
"jQuery.migrateWarnings": "",
"jqueryMigrate": ""
},
"script": "jquery[.-]migrate(?:-([\\d.]))?(?:\\.min)?\\.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": {