From 2797c2fc5b9913cc1682063f57f9605b213bb4c4 Mon Sep 17 00:00:00 2001 From: Chad Weider Date: Sat, 11 Feb 2012 20:53:24 -0800 Subject: [PATCH] Use the correct expression. --- node/utils/Minify.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node/utils/Minify.js b/node/utils/Minify.js index 859ee07ae..1830b0817 100644 --- a/node/utils/Minify.js +++ b/node/utils/Minify.js @@ -232,7 +232,8 @@ function getAceFile(callback) { async.forEach(founds, function (item, callback) { var filename = item.match(/"([^"]*)"/)[1]; var type = item.match(/INCLUDE_([A-Z]+)/)[1]; - var shortFilename = (filename.match(/^..\/static\/js\/(.*)$/, '')||[])[1]; + var shortFilename = + (filename.match(/^\.\.\/static\/js\/(.*)$/, '') || [])[1]; //read the included files if (shortFilename) {