From 32e803c5bc821a34d6d225659f7a4b4a24053e07 Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Fri, 16 Aug 2013 14:33:28 -0400 Subject: [PATCH] Minor build change: remove trailing tabs --- build/tasks/build.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build/tasks/build.js b/build/tasks/build.js index 8256603a3..ffc1243ba 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -53,11 +53,10 @@ module.exports = function( grunt ) { // Ignore jQuery's return statement (the only necessary one) if ( name !== "jquery" ) { contents = contents - .replace( /return\s+[^\}]+(\}\);[^\w\}]*)$/, "$1" ); + .replace( /\s*return\s+[^\}]+(\}\);[^\w\}]*)$/, "$1" ); } // Remove define wrappers, closure ends, and empty declarations - // Unless it's the proper AMD define contents = contents .replace( /define\([^{]*?{/, "" ) .replace( rdefineEnd, "" );