We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f842e14 commit 93949f4Copy full SHA for 93949f4
build/download-files.ts
@@ -12,6 +12,7 @@ async function writeFile(filename: string) {
12
let fileDataMin = fileData
13
// Convert /x flag
14
.replace(/(\s+|^)#.*/g, '') // remove comments
15
+ .replace(/^\s*$(?:\r?\n|\r)/gm, '') // Remove empty lines
16
.replace(/(pattern: )\|.*\n((\s+).+\n(\3.+\n)+)/g, (_, pref, content) => `${pref}'${content.replace(/^\s+|\s+$|\r?\n/gm, '')}'\n`) // flatten multi-line data
17
.replace('(?x)', '')
18
// Nuke unused `generated.rb` content
0 commit comments