mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Remove usage of String.replaceAll
It works in electron, but it's not part of ES2020
This commit is contained in:
parent
ef8350a68b
commit
319d019768
1 changed files with 1 additions and 1 deletions
|
|
@ -187,7 +187,7 @@ please check the shell config: ${JSON.stringify({shell, shellArgs}, undefined, 2
|
||||||
fallback to default shell config: ${JSON.stringify(defaultShellConfig, undefined, 2)}
|
fallback to default shell config: ${JSON.stringify(defaultShellConfig, undefined, 2)}
|
||||||
`;
|
`;
|
||||||
console.warn(msg);
|
console.warn(msg);
|
||||||
this.batcher?.write(msg.replaceAll('\n', '\r\n') as any);
|
this.batcher?.write(msg.replace(/\n/g, '\r\n') as any);
|
||||||
this.init({uid, rows, cols: columns, cwd, ...defaultShellConfig});
|
this.init({uid, rows, cols: columns, cwd, ...defaultShellConfig});
|
||||||
} else {
|
} else {
|
||||||
this.ended = true;
|
this.ended = true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue