Skip to content

Commit 63a577a

Browse files
committed
Build: space between curly and paren is optional
Fixes gh-2399 Close gh-2400
1 parent 842958e commit 63a577a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/tasks/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = function( grunt ) {
1111
var fs = require( "fs" ),
1212
requirejs = require( "requirejs" ),
1313
srcFolder = __dirname + "/../../src/",
14-
rdefineEnd = /\}\);[^}\w]*$/,
14+
rdefineEnd = /\}\s*?\);[^}\w]*$/,
1515
config = {
1616
baseUrl: "src",
1717
name: "jquery",
@@ -62,7 +62,7 @@ module.exports = function( grunt ) {
6262
} else {
6363

6464
contents = contents
65-
.replace( /\s*return\s+[^\}]+(\}\);[^\w\}]*)$/, "$1" )
65+
.replace( /\s*return\s+[^\}]+(\}\s*?\);[^\w\}]*)$/, "$1" )
6666
// Multiple exports
6767
.replace( /\s*exports\.\w+\s*=\s*\w+;/g, "" );
6868

0 commit comments

Comments
 (0)