From ca4a0075247ddeaa3fceb42179aa278bf28669f8 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 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, "" ); -- 2.39.5