diff --git a/2019/05.rkt b/2019/05.rkt index 0ff9fcd..0bb393d 100644 --- a/2019/05.rkt +++ b/2019/05.rkt @@ -2,7 +2,7 @@ (require racket/file rackunit) (define (string->regs str) - (list->vector (map string->number (string-split (string-replace str "," " "))))) + (list->vector (map string->number (string-split str #px",\\s*")))) (define ((binarize proc) x y) (if (proc x y) 1 0))