From 585ef702ef117232778113efc9979d51549abeeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Mon, 2 Apr 2012 11:12:49 -0400 Subject: [PATCH] Grunt: Copy jquery from root regardless of version; fix include list for minified CSS files. --- grunt.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/grunt.js b/grunt.js index a8ab7c666..3be684908 100644 --- a/grunt.js +++ b/grunt.js @@ -82,7 +82,9 @@ function stripBanner( files ) { } function stripDirectory( file ) { - return file.replace( /.+\/(.+)$/, "$1" ); + // TODO: we're receiving the directive, so we need to strip the trailing > + // we should be receving a clean path without the directive + return file.replace( /.+\/(.+?)>?$/, "$1" ); } // allow access from banner template global.stripDirectory = stripDirectory; @@ -138,7 +140,7 @@ grunt.initConfig({ src: [ "AUTHORS.txt", "GPL-LICENSE.txt", - "jquery-1.7.1.js", + "jquery-*.js", "MIT-LICENSE.txt", "README.md", "grunt.js",