Fix build.

Former-commit-id: 114ddcfec3e9bd4bccf481e8ec943ffdead2bb24
This commit is contained in:
John-David Dalton
2013-05-08 00:59:37 -07:00
parent 5acfa2bf3a
commit 80934ea232

View File

@@ -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