mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Build: space between curly and paren is optional
Ref 63a577aa0b
Fixes gh-2399
Close gh-2400
This commit is contained in:
parent
85aed35cb5
commit
cbb0be6c41
@ -11,7 +11,7 @@ module.exports = function( grunt ) {
|
||||
var fs = require( "fs" ),
|
||||
requirejs = require( "requirejs" ),
|
||||
srcFolder = __dirname + "/../../src/",
|
||||
rdefineEnd = /\}\);[^}\w]*$/,
|
||||
rdefineEnd = /\}\s*?\);[^}\w]*$/,
|
||||
config = {
|
||||
baseUrl: "src",
|
||||
name: "jquery",
|
||||
@ -68,7 +68,7 @@ module.exports = function( grunt ) {
|
||||
} else {
|
||||
|
||||
contents = contents
|
||||
.replace( /\s*return\s+[^\}]+(\}\);[^\w\}]*)$/, "$1" )
|
||||
.replace( /\s*return\s+[^\}]+(\}\s*?\);[^\w\}]*)$/, "$1" )
|
||||
|
||||
// Multiple exports
|
||||
.replace( /\s*exports\.\w+\s*=\s*\w+;/g, "" );
|
||||
|
Loading…
Reference in New Issue
Block a user