In the Web REPL (https://www.roc-lang.org/repl), when pressing Enter to submit code, a new line is created instead of the code being run
yeah, weird. @Richard Feldman I see this JS error in the console
Uncaught SyntaxError: Invalid regular expression: /^["][^\\]+\\$(name\)/i: Unterminated group (at site.js:46:37)
@Anton you changed this line here https://github.com/roc-lang/roc/pull/6488/files#diff-1abe063b1675d8faf77e0dfc993f55ee92e628f07276372e94339bcb60b09c02L46
I guess the $
also needs to be escaped there?
yep, that would explain it!
just needs to be \$
I'm on mobile but if anyone can make a quick PR for that, I can approve it
https://github.com/roc-lang/roc/pull/6501
I don't think that actually fixes the issue
Uncaught SyntaxError: Invalid regular expression: /^["][^\\]+\\\$(name\)/i: Unterminated group (at site.js:46:37)
oh it also needs one before the (
/^["][^\\]+\\\$\(name\)/i
Actually I think it should be something like /^"[^\$]+\$\(name\)/i
, otherwise it will try to match a backslash followed by a dollar sign
yeah I think you're right @John River! :thumbs_up:
want to make a PR for that?
I'm on mobile so only later today
Anyone feel free to make the change in the meantime :smile:
I'm also on mobile haha, sounds good!
https://github.com/roc-lang/roc/pull/6504
I totally forgot :melting_face:
Thanks @Anton
The repl is fixed now :)
Anton has marked this topic as resolved.
Last updated: Jul 06 2025 at 12:14 UTC