From d40787cd1829b8a9b182b1b65552b1e976de9636 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Thu, 14 Sep 2017 04:01:42 +0200 Subject: [PATCH] all-in-one: remove trailing whitespace from license during build --- allinone/build.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/allinone/build.js b/allinone/build.js index 86e0835..fd4fa88 100644 --- a/allinone/build.js +++ b/allinone/build.js @@ -77,9 +77,13 @@ var source = []; source = source.concat('/*') .concat(fs.readFileSync('LICENSE', 'utf8') + .replace(/^\s+|\s+$/g, '') .split(/\r?\n/g) .map(function(s) { return ' * ' + s; + }) + .map(function(s) { + return s.replace(/\s+$/, ''); })) .concat(' */') .concat('');