@latenightowl Heh, I've hit the same bug on trying to solve it in Hare (gave up and picked up Perl, @vladh managed to solve it).
The hare regex library is incomplete, can't deal with more than 2 alternatives, like (a|b) works but (a|b|c) doesn't.
Conversation
Notices
-
Embed this notice
Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Saturday, 02-Dec-2023 23:39:24 JST Haelwenn /элвэн/ :triskell: -
Embed this notice
Late Night Owl (latenightowl@social.linux.pizza)'s status on Saturday, 02-Dec-2023 23:39:26 JST Late Night Owl I'm really bad at both Hare and regex, but I assume the stdlib should not be crashing when I put in something that is perfectly valid in Python and regex101, right?
Abort: regex/regex.ha:516:41: slice or array access out of bounds
Aborted (core dumped)
#Hare #HareLang #AdventOfCode
-
Embed this notice