Fix silly bug caused by debugging code and fix issue with peg

This commit is contained in:
Vivianne 2024-02-26 18:48:31 -05:00
parent 143aabd689
commit 4a76b5d5e9
1 changed files with 2 additions and 2 deletions

View File

@ -315,13 +315,13 @@
(and narrow narrow narrow)))
(define-peg-pattern hex-string body
(and (ignore "#") (ignore "0x")
(and (ignore (and (? "#") (? (or "x" "0x"))))
hex-chars))
(define (str->channel str)
(let ((v (locale-string->integer str 16)))
;; If one character we act as if it was doubled
(if (= 1 1)
(if (= 1 (string-length str))
(+ v (* v 16))
v)))