repl: catch \v
and \r
in new-line detection
#54512
Merged
\v
and \r
in new-line detection
#54512