Skip to content

Commit

Permalink
fix: ignore backslashes
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Jul 5, 2023
1 parent d60a620 commit 820e7c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ All long form (--) flags can be toggled with the dig-standard +[no]flag notation
}

// Set qname if not set by flag
if opts.Name == "" && !containsAny(arg, []string{"@", "/", ".exe", "-", "+"}) && !typeFound {
if opts.Name == "" && !containsAny(arg, []string{"@", "/", "\\", ".exe", "-", "+"}) && !typeFound {
opts.Name = arg
}
}
Expand Down

0 comments on commit 820e7c6

Please sign in to comment.