From b30ff35a363db8fc797cb2a1c4eaecc773012559 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 19 Sep 2020 09:01:00 -0700 Subject: [PATCH] debugger: align message with Node.js standard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: https://github.com/nodejs/node/pull/38400 Backport-PR-URL: https://github.com/nodejs/node/pull/39446 Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- lib/internal/inspector/inspect_repl.js | 4 ++-- test/sequential/test-debugger-exec.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/internal/inspector/inspect_repl.js b/lib/internal/inspector/inspect_repl.js index a9daa88c30d435..5e10dad2e147fd 100644 --- a/lib/internal/inspector/inspect_repl.js +++ b/lib/internal/inspector/inspect_repl.js @@ -1008,7 +1008,7 @@ function createRepl(inspector) { repl.setPrompt('> '); - print('Press Ctrl + C to leave debug repl'); + print('Press Ctrl+C to leave debug repl'); repl.displayPrompt(); }, @@ -1080,7 +1080,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'); }); diff --git a/test/sequential/test-debugger-exec.js b/test/sequential/test-debugger-exec.js index 15e7e212cf2466..f47eaaa5a6f62d 100644 --- a/test/sequential/test-debugger-exec.js +++ b/test/sequential/test-debugger-exec.js @@ -31,7 +31,7 @@ const assert = require('assert'); .then(() => { assert.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'); assert.doesNotMatch(cli.output, /debug>/, 'changes the repl style'); })