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;