Skip to content

Commit

Permalink
fix: Optimize space paths
Browse files Browse the repository at this point in the history
  • Loading branch information
wll8 committed Dec 6, 2023
1 parent 30c0695 commit 11af13a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion md-cli/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function portIsOk (port) {
* @param {string} str
*/
function handleSpace(str = ``) {
const newStr = require('os').type() === 'Windows_NT' ? `"${str}"` : str
const newStr = require('os').type() === 'Windows_NT' && str.match(` `) ? `"${str}"` : str
return newStr
}

Expand Down

0 comments on commit 11af13a

Please sign in to comment.