Skip to content

Commit 93949f4

Browse files
Fix correct indentation in heuristic.yml to resolve YAML parsing error (#38)
1 parent f842e14 commit 93949f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build/download-files.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ async function writeFile(filename: string) {
1212
let fileDataMin = fileData
1313
// Convert /x flag
1414
.replace(/(\s+|^)#.*/g, '') // remove comments
15+
.replace(/^\s*$(?:\r?\n|\r)/gm, '') // Remove empty lines
1516
.replace(/(pattern: )\|.*\n((\s+).+\n(\3.+\n)+)/g, (_, pref, content) => `${pref}'${content.replace(/^\s+|\s+$|\r?\n/gm, '')}'\n`) // flatten multi-line data
1617
.replace('(?x)', '')
1718
// Nuke unused `generated.rb` content

0 commit comments

Comments
 (0)