Permalink
Browse files

Build: space between curly and paren is optional

Fixes gh-2399
Close gh-2400
  • Loading branch information...
timmywil committed Jun 16, 2015
1 parent 842958e commit 63a577aa0bcb439c1730c3825407d86c128b17be
Showing with 2 additions and 2 deletions.
  1. +2 −2 build/tasks/build.js
View
@@ -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",
@@ -62,7 +62,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, "" );

1 comment on commit 63a577a

@markelog

This comment has been minimized.

Show comment
Hide comment
@markelog

markelog Sep 3, 2015

Member

Yeah, that should have been ported to compat as well

Member

markelog commented on 63a577a Sep 3, 2015

Yeah, that should have been ported to compat as well

Please sign in to comment.