1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

chore(tests): fix typo in pty.rs (#12757)

This commit is contained in:
Ikko Ashimine 2021-11-14 22:14:25 +09:00 committed by GitHub
parent 28dbb4a95e
commit dd91ecef50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -261,7 +261,7 @@ mod windows {
impl Pty for WinPseudoConsole {
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();
self
.write_all(newline_re.replace_all(text, "\r\n").as_bytes())