diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2016-04-25 22:34:29 +0200 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2016-04-26 22:50:18 +0200 |
commit | 0652c4d6a203a1c56ab08f62d6649ba31b7ddfab (patch) | |
tree | 55c6996a1a0cfc34177c83ad0ddfe399b7329f22 | |
parent | ab5ce70cb558f8d8d50b13186f8c0a66741480e8 (diff) | |
download | jquery-0652c4d6a203a1c56ab08f62d6649ba31b7ddfab.tar.gz jquery-0652c4d6a203a1c56ab08f62d6649ba31b7ddfab.zip |
Build: Strip excessive "use strict" pragmas when building
Fixes gh-3077
-rw-r--r-- | build/tasks/build.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/tasks/build.js b/build/tasks/build.js index 0eff368f7..926348182 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -81,7 +81,7 @@ module.exports = function( grunt ) { // Remove define wrappers, closure ends, and empty declarations contents = contents - .replace( /define\([^{]*?{/, "" ) + .replace( /define\([^{]*?{\s*(?:("|')use strict\1(?:;|))?/, "" ) .replace( rdefineEnd, "" ); // Remove anything wrapped with |