Skip to content

Commit

Permalink
Item12567: fix checking of version number in configure
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@16862 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
CrawfordCurrie authored and CrawfordCurrie committed Aug 16, 2013
1 parent 3f4a65a commit a9e4a3e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ sub check {
my $e = '';
my $jqversion = $Foswiki::cfg{JQueryPlugin}{JQueryVersion};

if ( $jqversion =~ /^jquery-(\d+\.\d+)/ && defined $1
and $1 <= 1.3 )
if ( $jqversion =~ /^jquery-(\d+)\.(\d+)/ && defined $1
and ( $1 * 1000 + $2 ) <= 1003 )
{
$e .= $this->WARN(<<'MESSAGE');
jQuery 1.3.x and earlier are not compatible with Foswiki default plugins
Expand Down

0 comments on commit a9e4a3e

Please sign in to comment.