Skip to content

Commit

Permalink
VIP-CLI interactive console: Trim leading and ending spaces in comman…
Browse files Browse the repository at this point in the history
…d passed in (#2180)
  • Loading branch information
rebeccahum authored Jan 3, 2025
1 parent edd4b9b commit 8aaba52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/vip-wp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8aaba52

Please sign in to comment.