]> source.dussan.org Git - jquery.git/commitdiff
Minor build change: remove trailing tabs
authorTimmy Willison <timmywillisn@gmail.com>
Fri, 16 Aug 2013 18:33:28 +0000 (14:33 -0400)
committerTimmy Willison <timmywillisn@gmail.com>
Fri, 16 Aug 2013 18:33:42 +0000 (14:33 -0400)
build/tasks/build.js

index adbc3092369603d96f871738c9296fb138401ebc..e0cdc078f329868d8ece638d7c57058e30c565a5 100644 (file)
@@ -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, "" );