Skip to content

Commit cbb0be6

Browse files
timmywilmarkelog
authored andcommitted
Build: space between curly and paren is optional
Ref 63a577a Fixes gh-2399 Close gh-2400
1 parent 85aed35 commit cbb0be6

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",
@@ -68,7 +68,7 @@ module.exports = function( grunt ) {
6868
} else {
6969

7070
contents = contents
71-
.replace( /\s*return\s+[^\}]+(\}\);[^\w\}]*)$/, "$1" )
71+
.replace( /\s*return\s+[^\}]+(\}\s*?\);[^\w\}]*)$/, "$1" )
7272

7373
// Multiple exports
7474
.replace( /\s*exports\.\w+\s*=\s*\w+;/g, "" );

0 commit comments

Comments
 (0)