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

Commit 9d8cd2b

Browse files
Trottjkrems
authored andcommitted
chore: align message with Node.js standard
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.
1 parent e9a2071 commit 9d8cd2b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/internal/inspect_repl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ function createRepl(inspector) {
10231023

10241024
repl.setPrompt('> ');
10251025

1026-
print('Press Ctrl + C to leave debug repl');
1026+
print('Press Ctrl+C to leave debug repl');
10271027
repl.displayPrompt();
10281028
},
10291029

@@ -1095,7 +1095,7 @@ function createRepl(inspector) {
10951095
repl.on('reset', initializeContext);
10961096

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

test/cli/exec.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ test('examples/alive.js', (t) => {
2121
.then(() => {
2222
t.match(
2323
cli.output,
24-
'Press Ctrl + C to leave debug repl\n> ',
24+
'Press Ctrl+C to leave debug repl\n> ',
2525
'shows hint for how to leave repl');
2626
t.notMatch(cli.output, 'debug>', 'changes the repl style');
2727
})

0 commit comments

Comments
 (0)