Fix Underscore detection in post-compile.js.

Former-commit-id: ad3c5cd28bc9ac0f6c9e5801c3849acd4305c528
This commit is contained in:
John-David Dalton
2012-09-03 15:40:47 -07:00
parent 5477d3c292
commit 3ca81a4ff7

View File

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