From 317f888383a9d169a92d80aa9492a4eea98bd678 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 30 Jun 2013 00:13:33 -0700 Subject: [PATCH] Make `cleanupSource` remove extra trailing whitespace. Former-commit-id: 4b805471336e3259b45a51e1a5f1bea62d66bd94 --- build.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.js b/build.js index 5acc961ad..99025148b 100755 --- a/build.js +++ b/build.js @@ -861,7 +861,9 @@ // remove lines with just whitespace and semicolons .replace(/^ *;\n/gm, '') // consolidate multiple newlines - .replace(/\n{3,}/g, '\n\n'); + .replace(/\n{3,}/g, '\n\n') + // add trailing newline + .trim() + '\n' } /**