[WIP] Day 11

This commit is contained in:
Kevin Baensch 2022-12-12 07:58:30 +01:00
parent 8ca6967bb4
commit 23336d7219
2 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,6 @@
import { parse } from "https://deno.land/std@0.167.0/encoding/yaml.ts"
const input = Deno.readTextFileSync('input.txt').trim();
const yaml = parse(input
.replaceAll("Test:", "Test:\n -")
.replace(/If (?:true|false):/g, '- '));