From 3ca81a4ff726fe39481ac5776e79a65a09ff14ea Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 3 Sep 2012 15:40:47 -0700 Subject: [PATCH] Fix Underscore detection in post-compile.js. Former-commit-id: ad3c5cd28bc9ac0f6c9e5801c3849acd4305c528 --- build/post-compile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/post-compile.js b/build/post-compile.js index f324f5f9c..acccbb354 100644 --- a/build/post-compile.js +++ b/build/post-compile.js @@ -34,7 +34,7 @@ // set the version var license = ( - snippet ? licenseTemplate[/lodash/i.test(source) ? 'lodash' : 'underscore'] : '' + snippet ? licenseTemplate[/call\(this\)[;\s]*$/.test(source) ? 'underscore' : 'lodash'] : '' ).replace('@VERSION', snippet[2]); // move vars exposed by Closure Compiler into the IIFE