From a5cf42b7c858a621b27b75a87ec11d41c7a36eda Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 9 Aug 2013 23:46:20 -0700 Subject: [PATCH] Ensure `modularize underscore exports=amd` works without errors in template.js. Former-commit-id: ae137c924d26b2614ed1ebdb7abb33e4b76124f4 --- build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.js b/build.js index 5791e99dd..f2a88f041 100644 --- a/build.js +++ b/build.js @@ -4109,7 +4109,7 @@ source = source.replace(matchFunction(source, 'template'), function(match) { if (isUnderscore) { // assign `_` via `template.imports` - return match.replace(/_ *= *lodash\b/, '$&.templateSettings.imports._'); + return match.replace(/(_ *= *)lodash\b/, '$1templateSettings.imports._'); } return match // assign `settings` via `template.imports`