From 142ee20bcaf7b9b045f360afc0a95799ecfd1a90 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 30 Apr 2012 22:16:21 -0400 Subject: [PATCH] lodash: Fix post-compile.js VERSION detection to allow newlines. [jddalton] Former-commit-id: 2e0d342cf66c4507a2956eeac912333cfdca5817 --- 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 1f33a3315..93bff4be8 100644 --- a/build/post-compile.js +++ b/build/post-compile.js @@ -24,7 +24,7 @@ */ function postprocess(source) { // set the version - var license = licenseTemplate.replace('@VERSION', (/VERSION:([\'"])(.*?)\1/).exec(source).pop()); + var license = licenseTemplate.replace('@VERSION', (/VERSION\s*:\s*([\'"])(.*?)\1/).exec(source).pop()); // move vars exposed by Closure Compiler into the IIFE source = source.replace(/^([^(\n]+)\s*(\(function[^)]+\){)/, '$2$1'); // use double quotes consistently