Skip to content

Commit 585ef70

Browse files
committed
Grunt: Copy jquery from root regardless of version; fix include list for minified CSS files.
1 parent 83756a1 commit 585ef70

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

grunt.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ function stripBanner( files ) {
8282
}
8383

8484
function stripDirectory( file ) {
85-
return file.replace( /.+\/(.+)$/, "$1" );
85+
// TODO: we're receiving the directive, so we need to strip the trailing >
86+
// we should be receving a clean path without the directive
87+
return file.replace( /.+\/(.+?)>?$/, "$1" );
8688
}
8789
// allow access from banner template
8890
global.stripDirectory = stripDirectory;
@@ -138,7 +140,7 @@ grunt.initConfig({
138140
src: [
139141
"AUTHORS.txt",
140142
"GPL-LICENSE.txt",
141-
"jquery-1.7.1.js",
143+
"jquery-*.js",
142144
"MIT-LICENSE.txt",
143145
"README.md",
144146
"grunt.js",

0 commit comments

Comments
 (0)