From 4d7d974ecd816f4fde790b930e63f0864efa44bd Mon Sep 17 00:00:00 2001 From: Dimitri Lozeve Date: Mon, 11 May 2020 16:02:53 +0200 Subject: [PATCH] Fix problem 6 --- Contest2020/Contest2020.dyalog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Contest2020/Contest2020.dyalog b/Contest2020/Contest2020.dyalog index cfbd036..9e3bafb 100644 --- a/Contest2020/Contest2020.dyalog +++ b/Contest2020/Contest2020.dyalog @@ -104,11 +104,11 @@ ∇ ∇ text←templateFile Merge jsonFile;template;ns - template←⊃⎕NGET templateFile + template←⊃⎕NGET templateFile 1 ns←⎕JSON⊃⎕NGET jsonFile ⍝ We use a simple regex search and replace on the ⍝ template. - text←('@[a-zA-Z]*@'⎕R{ns getval ¯1↓1↓⍵.Match})template + text←↑('@[a-zA-Z]*@'⎕R{ns getval ¯1↓1↓⍵.Match})template ∇ ⍝ 2020 APL Problem Solving Competition Phase II