diff options
-rw-r--r-- | build/tasks/build.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build/tasks/build.js b/build/tasks/build.js index 1579691a0..69916bf02 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -17,7 +17,11 @@ module.exports = function( grunt ) { read = function( fileName ) { return grunt.file.read( srcFolder + fileName ); }, - wrapper = read( "wrapper.js" ).split( /\/\/ \@CODE\n\/\/[^\n]+/ ), + + // Catch `// @CODE` and subsequent comment lines event if they don't start + // in the first column. + wrapper = read( "wrapper.js" ).split( /[\x20\t]*\/\/ @CODE\n(?:[\x20\t]*\/\/[^\n]+\n)*/ ), + config = { baseUrl: "src", name: "jquery", |