Skip to content

Commit

Permalink
Fix correct indentation in heuristic.yml to resolve YAML parsing error (
Browse files Browse the repository at this point in the history
  • Loading branch information
MidnightCrowing authored Dec 5, 2024
1 parent f842e14 commit 93949f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build/download-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ async function writeFile(filename: string) {
let fileDataMin = fileData
// Convert /x flag
.replace(/(\s+|^)#.*/g, '') // remove comments
.replace(/^\s*$(?:\r?\n|\r)/gm, '') // Remove empty lines
.replace(/(pattern: )\|.*\n((\s+).+\n(\3.+\n)+)/g, (_, pref, content) => `${pref}'${content.replace(/^\s+|\s+$|\r?\n/gm, '')}'\n`) // flatten multi-line data
.replace('(?x)', '')
// Nuke unused `generated.rb` content
Expand Down

0 comments on commit 93949f4

Please sign in to comment.