cmd: add support for escaping ~ in filepath (#10339)

Co-authored-by: tooth paste <tooth_paste91@Poorneshwars-MacBook-Pro.local>
This commit is contained in:
greengrass821 2025-04-21 03:51:48 +05:30 committed by GitHub
parent 88738b357b
commit 0806521642
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -503,6 +503,7 @@ func normalizeFilePath(fp string) string {
"\\\\", "\\", // Escaped backslash
"\\*", "*", // Escaped asterisk
"\\?", "?", // Escaped question mark
"\\~", "~", // Escaped tilde
).Replace(fp)
}