mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 04:18:48 +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([^.]*)(\.min)?\.js$
|
||||
- (^|/)jquery\-\d\.\d(\.\d)?(\.min)?\.js$
|
||||
- (^|/)jquery\-\d\.\d+(\.\d+)?(\.min)?\.js$
|
||||
|
||||
# jQuery UI
|
||||
- (^|/)jquery\-ui(\-\d\.\d+(\.\d+)?)?(\.\w+)?(\.min)?\.(js|css)$
|
||||
|
||||
Reference in New Issue
Block a user