mirror of
https://github.com/denoland/deno.git
synced 2025-02-01 12:16:11 -05:00
chore(tests): fix typo in pty.rs (#12757)
This commit is contained in:
parent
28dbb4a95e
commit
dd91ecef50
1 changed files with 1 additions and 1 deletions
|
@ -261,7 +261,7 @@ mod windows {
|
||||||
|
|
||||||
impl Pty for WinPseudoConsole {
|
impl Pty for WinPseudoConsole {
|
||||||
fn write_text(&mut self, text: &str) {
|
fn write_text(&mut self, text: &str) {
|
||||||
// windows psuedo console requires a \r\n to do a newline
|
// windows pseudo console requires a \r\n to do a newline
|
||||||
let newline_re = regex::Regex::new("\r?\n").unwrap();
|
let newline_re = regex::Regex::new("\r?\n").unwrap();
|
||||||
self
|
self
|
||||||
.write_all(newline_re.replace_all(text, "\r\n").as_bytes())
|
.write_all(newline_re.replace_all(text, "\r\n").as_bytes())
|
||||||
|
|
Loading…
Add table
Reference in a new issue