Skip to content

Commit 203a968

Browse files
Trotttargos
authored andcommitted
debugger: 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. PR-URL: #38400 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent ef617dc commit 203a968

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/internal/inspector/inspect_repl.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ function createRepl(inspector) {
10271027

10281028
repl.setPrompt('> ');
10291029

1030-
print('Press Ctrl + C to leave debug repl');
1030+
print('Press Ctrl+C to leave debug repl');
10311031
repl.displayPrompt();
10321032
},
10331033

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

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

test/inspector-cli/test-inspector-cli-exec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const assert = require('assert');
3131
.then(() => {
3232
assert.match(
3333
cli.output,
34-
/Press Ctrl \+ C to leave debug repl\n+> /,
34+
/Press Ctrl\+C to leave debug repl\n+> /,
3535
'shows hint for how to leave repl');
3636
assert.doesNotMatch(cli.output, /debug>/, 'changes the repl style');
3737
})

0 commit comments

Comments
 (0)