Skip to content

Commit

Permalink
fix(complete): Fix single quote escaping in PowerShell
Browse files Browse the repository at this point in the history
fix formatting
  • Loading branch information
8LWXpg committed Jan 25, 2025
1 parent eadcc8f commit 7d8470e
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
Expand Up @@ -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 {
Expand Down

0 comments on commit 7d8470e

Please sign in to comment.