From eab6b322bb25aed3edd37c904dc57ed6b8b0645b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=BD=C3=A1dn=C3=ADk?= Date: Thu, 6 Jan 2022 20:52:43 +0200 Subject: [PATCH] Add CR, LF and CRLF to char command (#691) --- crates/nu-command/src/strings/char_.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/nu-command/src/strings/char_.rs b/crates/nu-command/src/strings/char_.rs index 8aadb5a029..0ceb02a5a9 100644 --- a/crates/nu-command/src/strings/char_.rs +++ b/crates/nu-command/src/strings/char_.rs @@ -26,6 +26,11 @@ lazy_static! { "newline" => '\n'.to_string(), "enter" => '\n'.to_string(), "nl" => '\n'.to_string(), + "line_feed" => '\n'.to_string(), + "lf" => '\n'.to_string(), + "carriage_return" => '\r'.to_string(), + "cr" => '\r'.to_string(), + "crlf" => "\r\n".to_string(), "tab" => '\t'.to_string(), "sp" => ' '.to_string(), "space" => ' '.to_string(),