Skip to content

Commit 7e54542

Browse files
authored
Merge pull request #5892 from 8LWXpg/patch-1
fix(complete): Fix single quote escaping in PowerShell
2 parents eadcc8f + 7d8470e commit 7e54542

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clap_complete/src/aot/shells/powershell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Register-ArgumentCompleter -Native -CommandName '{bin_name}' -ScriptBlock {{
5959

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

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

0 commit comments

Comments
 (0)