From: Timmy Willison Date: Fri, 16 Aug 2013 18:33:28 +0000 (-0400) Subject: Minor build change: remove trailing tabs X-Git-Tag: 1.11.0-beta1~77 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ca4a0075247ddeaa3fceb42179aa278bf28669f8;p=jquery.git Minor build change: remove trailing tabs --- diff --git a/build/tasks/build.js b/build/tasks/build.js index adbc30923..e0cdc078f 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, "" );