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