From 6e06c022ad015176d28f6b7b3577a10006738f37 Mon Sep 17 00:00:00 2001 From: Rebecca Hum <rebeccahum@gmail.com> Date: Fri, 3 Jan 2025 10:55:52 -0700 Subject: [PATCH] VIP-CLI interactive console: Trim leading and ending spaces in command passed in --- src/bin/vip-wp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/vip-wp.js b/src/bin/vip-wp.js index 92cce82a3..9a2cbda43 100755 --- a/src/bin/vip-wp.js +++ b/src/bin/vip-wp.js @@ -411,7 +411,7 @@ commandWrapper( { process.exit(); } - const startsWithWp = line.startsWith( 'wp ' ); + const startsWithWp = line.trim().startsWith( 'wp ' ); const empty = 0 === line.length; const userCmdCancelled = line === cancelCommandChar;