1## 2# This file is part of WhatWeb and may be subject to 3# redistribution and commercial restrictions. Please see the WhatWeb 4# web site for more information on licensing and terms of use. 5# http://www.morningstarsecurity.com/research/whatweb 6## 7# Version 0.2 8# removed :probability 9## 10# Version 0.3 11# rewrite 12## 13# Version 0.4 14# added another match line from Eric Sesterhenn 15 16Plugin.define "JQuery" do 17author "Andrew Horton" 18version "0.4" 19description "A fast, concise, JavaScript that simplifies how to traverse HTML documents, handle events, perform animations, and add AJAX." 20website "http://jquery.com/" 21 22 23 24# Matches # 25matches [ 26 27# JavaScript 28{ :regexp=>/<script [^>]*jquery/ }, 29 30# JavaScript # Version Detection 31{ :version=>/jquery(\.min)?\.js\?ver=([0-9\.]+)['"]/, :offset=>1 }, 32{ :version=>/jquery-([0-9\.]+)(\.min)?\.js/, :offset=>0 } 33 34] 35 36end 37 38