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 <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
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‎

Lines changed: 2 additions & 2 deletions
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‎

Lines changed: 1 addition & 1 deletion
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-
/PressCtrl\+Ctoleavedebugrepl\n+>/,
34+
/PressCtrl\+Ctoleavedebugrepl\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)