mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Recognize jQuery >= 1.10.0
jQuery recently passed 1.10, but the vendor regexp assumed each component of the version number would be only one digit. Allow multiple digits for the minor and micro versions.
This commit is contained in:
@@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
# jQuery
|
# jQuery
|
||||||
- (^|/)jquery([^.]*)(\.min)?\.js$
|
- (^|/)jquery([^.]*)(\.min)?\.js$
|
||||||
- (^|/)jquery\-\d\.\d(\.\d)?(\.min)?\.js$
|
- (^|/)jquery\-\d\.\d+(\.\d+)?(\.min)?\.js$
|
||||||
|
|
||||||
# jQuery UI
|
# jQuery UI
|
||||||
- (^|/)jquery\-ui(\-\d\.\d+(\.\d+)?)?(\.\w+)?(\.min)?\.(js|css)$
|
- (^|/)jquery\-ui(\-\d\.\d+(\.\d+)?)?(\.\w+)?(\.min)?\.(js|css)$
|
||||||
|
|||||||
@@ -236,6 +236,8 @@ class TestBlob < Test::Unit::TestCase
|
|||||||
assert blob("public/javascripts/jquery-1.5.2.js").vendored?
|
assert blob("public/javascripts/jquery-1.5.2.js").vendored?
|
||||||
assert blob("public/javascripts/jquery-1.6.1.js").vendored?
|
assert blob("public/javascripts/jquery-1.6.1.js").vendored?
|
||||||
assert blob("public/javascripts/jquery-1.6.1.min.js").vendored?
|
assert blob("public/javascripts/jquery-1.6.1.min.js").vendored?
|
||||||
|
assert blob("public/javascripts/jquery-1.10.1.js").vendored?
|
||||||
|
assert blob("public/javascripts/jquery-1.10.1.min.js").vendored?
|
||||||
assert !blob("public/javascripts/jquery.github.menu.js").vendored?
|
assert !blob("public/javascripts/jquery.github.menu.js").vendored?
|
||||||
|
|
||||||
# jQuery UI
|
# jQuery UI
|
||||||
|
|||||||
Reference in New Issue
Block a user