RunJS
RunJS copied to clipboard
Line Breaks Not Escaped in RegExp Output
Escaped line breaks in regular expressions are not escaped on output. A super minor issue, but something I ran across.
Input:
new RegExp('abc\ndef');
/ghi\njkl/;
Output:
/abc
def/
/ghi
jkl/
Node from the terminal and browser consoles return the regex on one line as expected.
macOS 12.3.1 RunJS v2.3.1
Thanks, I'll look into it.