Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(complete): fix single quote escaping in PowerShell
Browse files Browse the repository at this point in the history
8LWXpg authored Jan 25, 2025
1 parent eadcc8f commit 64ef292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clap_complete/src/aot/shells/powershell.rs
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ Register-ArgumentCompleter -Native -CommandName '{bin_name}' -ScriptBlock {{

// Escape string inside single quotes
fn escape_string(string: &str) -> String {
string.replace('\'', "''")
string.replace('\'', "''").replace('’',"'’")
}

fn escape_help<T: ToString>(help: Option<&StyledStr>, data: T) -> String {

0 comments on commit 64ef292

Please sign in to comment.