Skip to content

Commit b30ff35

Browse files
Trottrichardlau
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 Backport-PR-URL: #39446 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent d74d67f commit b30ff35

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
@@ -1008,7 +1008,7 @@ function createRepl(inspector) {
10081008

10091009
repl.setPrompt('> ');
10101010

1011-
print('Press Ctrl + C to leave debug repl');
1011+
print('Press Ctrl+C to leave debug repl');
10121012
repl.displayPrompt();
10131013
},
10141014

@@ -1080,7 +1080,7 @@ function createRepl(inspector) {
10801080
repl.on('reset', initializeContext);
10811081

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

test/sequential/test-debugger-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)