From 3f163051b17b47bd997314dfb3cd050d5fe0be1a Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 8 Mar 2013 00:20:07 -0800 Subject: [PATCH] Avoid hardcoded indents in build.js. Former-commit-id: ece1e6a32f5d308e4674774f8875ee34c06b4d43 --- build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.js b/build.js index a0fb80ea3..fd3d5491a 100755 --- a/build.js +++ b/build.js @@ -2673,7 +2673,7 @@ } else if (/support\.nonEnumArgs\b/.test(match)) { return match.replace(setup, ''); } - return body.replace(/^ {4}/gm, ' '); + return body.replace(RegExp('^' + indent, 'gm'), indent.slice(0, -2)); }); } }