Avoid hardcoded indents in build.js.

Former-commit-id: ece1e6a32f5d308e4674774f8875ee34c06b4d43
This commit is contained in:
John-David Dalton
2013-03-08 00:20:07 -08:00
parent 4f1d03e1d4
commit 3f163051b1

View File

@@ -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));
});
}
}