mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Improve detection for ASP.NET validation jQuery plugins
This commit is contained in:
@@ -85,7 +85,8 @@
|
|||||||
- -vsdoc\.js$
|
- -vsdoc\.js$
|
||||||
|
|
||||||
# jQuery validation plugin (MS bundles this with asp.net mvc)
|
# jQuery validation plugin (MS bundles this with asp.net mvc)
|
||||||
- (^|/)jquery([^.]*)\.validate(\.min)?\.js$
|
- (^|/)jquery([^.]*)\.validate(\.unobtrusive)?(\.min)?\.js$
|
||||||
|
- (^|/)jquery([^.]*)\.unobtrusive\-ajax(\.min)?\.js$
|
||||||
|
|
||||||
# Microsoft Ajax
|
# Microsoft Ajax
|
||||||
- (^|/)[Mm]icrosoft([Mm]vc)?([Aa]jax|[Vv]alidation)(\.debug)?\.js$
|
- (^|/)[Mm]icrosoft([Mm]vc)?([Aa]jax|[Vv]alidation)(\.debug)?\.js$
|
||||||
|
|||||||
@@ -269,6 +269,11 @@ class TestBlob < Test::Unit::TestCase
|
|||||||
|
|
||||||
# jQuery validation plugin (MS bundles this with asp.net mvc)
|
# jQuery validation plugin (MS bundles this with asp.net mvc)
|
||||||
assert blob("Scripts/jquery.validate.js").vendored?
|
assert blob("Scripts/jquery.validate.js").vendored?
|
||||||
|
assert blob("Scripts/jquery.validate.min.js").vendored?
|
||||||
|
assert blob("Scripts/jquery.validate.unobtrusive.js").vendored?
|
||||||
|
assert blob("Scripts/jquery.validate.unobtrusive.min.js").vendored?
|
||||||
|
assert blob("Scripts/jquery.unobtrusive-ajax.js").vendored?
|
||||||
|
assert blob("Scripts/jquery.unobtrusive-ajax.min.js").vendored?
|
||||||
|
|
||||||
# NuGet Packages
|
# NuGet Packages
|
||||||
assert blob("packages/Modernizr.2.0.6/Content/Scripts/modernizr-2.0.6-development-only.js").vendored?
|
assert blob("packages/Modernizr.2.0.6/Content/Scripts/modernizr-2.0.6-development-only.js").vendored?
|
||||||
|
|||||||
Reference in New Issue
Block a user