Skip to content

Commit

Permalink
feat: use trim instead of replace
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerlox committed Apr 2, 2023
1 parent c9da924 commit 056ca9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compiler/helpers/manual-restart.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export function listenForManualRestart(callback: () => void) {
const stdinListener = (data: Buffer) => {
if (data.toString().replace('\n', '') === 'rs') {
if (data.toString().trim() === 'rs') {
process.stdin.removeListener('data', stdinListener);
callback();
}
Expand Down

0 comments on commit 056ca9e

Please sign in to comment.