[WIP] Day 11
This commit is contained in:
parent
8ca6967bb4
commit
23336d7219
2 changed files with 61 additions and 0 deletions
6
src/11_MonkeyInTheMiddle/MonkeyInTheMiddle.ts
Normal file
6
src/11_MonkeyInTheMiddle/MonkeyInTheMiddle.ts
Normal 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, '- '));
|
Loading…
Add table
Add a link
Reference in a new issue