mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 11:57:49 +00:00
Make cleanupSource remove extra trailing whitespace.
Former-commit-id: 4b805471336e3259b45a51e1a5f1bea62d66bd94
This commit is contained in:
4
build.js
4
build.js
@@ -861,7 +861,9 @@
|
|||||||
// remove lines with just whitespace and semicolons
|
// remove lines with just whitespace and semicolons
|
||||||
.replace(/^ *;\n/gm, '')
|
.replace(/^ *;\n/gm, '')
|
||||||
// consolidate multiple newlines
|
// consolidate multiple newlines
|
||||||
.replace(/\n{3,}/g, '\n\n');
|
.replace(/\n{3,}/g, '\n\n')
|
||||||
|
// add trailing newline
|
||||||
|
.trim() + '\n'
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user