From 80934ea23253227d37d7e9b978c79733508258a8 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Wed, 8 May 2013 00:59:37 -0700 Subject: [PATCH] Fix build. Former-commit-id: 114ddcfec3e9bd4bccf481e8ec943ffdead2bb24 --- build/post-compile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/post-compile.js b/build/post-compile.js index 0ee398d7f..2d3796393 100644 --- a/build/post-compile.js +++ b/build/post-compile.js @@ -45,8 +45,8 @@ }); // add a space so `define` is detected by the Dojo builder - source = source.replace(/.define\(/, function(match) { - return (/^\S/.test(match) ? ' ' : '') + match; + source = source.replace(/(.)(define\()/, function(match, prelude, define) { + return prelude + (/^\S/.test(prelude) ? ' ' : '') + define; }); // add trailing semicolon