Skip to content

Commit

Permalink
Merge pull request #870 from rsteube/nushell-fix-single-quote
Browse files Browse the repository at this point in the history
nushell: single quote needs to be quoted as well
  • Loading branch information
rsteube authored Jul 31, 2023
2 parents 584a781 + fa1cefe commit 1b8c481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/shell/nushell/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func sanitize(values []common.RawValue) []common.RawValue {
func ActionRawValues(currentWord string, meta common.Meta, values common.RawValues) string {
vals := make([]record, len(values))
for index, val := range sanitize(values) {
if strings.ContainsAny(val.Value, ` {}()[]<>$&"|;#\`+"`") {
if strings.ContainsAny(val.Value, ` {}()[]<>$&"'|;#\`+"`") {
switch {
case strings.HasPrefix(val.Value, "~"):
val.Value = fmt.Sprintf(`~"%v"`, escaper.Replace(val.Value[1:]))
Expand Down

0 comments on commit 1b8c481

Please sign in to comment.