all-in-one: remove trailing whitespace from license during build

This commit is contained in:
Bert Belder 2017-09-14 04:01:42 +02:00
parent 427e0a0209
commit d40787cd18

View File

@ -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('');