Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
chore: align message with Node.js standard
Browse files Browse the repository at this point in the history
Node.js uses (or will use) _Ctrl+C_ with no spaces. To unify the
messages from inspect with other messages from the REPL and elsewhere,
make that change in node-inspect too.
  • Loading branch information
Trott authored and jkrems committed Sep 21, 2020
1 parent e9a2071 commit 9d8cd2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/internal/inspect_repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ function createRepl(inspector) {

repl.setPrompt('> ');

print('Press Ctrl + C to leave debug repl');
print('Press Ctrl+C to leave debug repl');
repl.displayPrompt();
},

Expand Down Expand Up @@ -1095,7 +1095,7 @@ function createRepl(inspector) {
repl.on('reset', initializeContext);

repl.defineCommand('interrupt', () => {
// We want this for testing purposes where sending CTRL-C can be tricky.
// We want this for testing purposes where sending Ctrl+C can be tricky.
repl.emit('SIGINT');
});

Expand Down
2 changes: 1 addition & 1 deletion test/cli/exec.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ test('examples/alive.js', (t) => {
.then(() => {
t.match(
cli.output,
'Press Ctrl + C to leave debug repl\n> ',
'Press Ctrl+C to leave debug repl\n> ',
'shows hint for how to leave repl');
t.notMatch(cli.output, 'debug>', 'changes the repl style');
})
Expand Down

0 comments on commit 9d8cd2b

Please sign in to comment.