We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c57c00 commit aecd13dCopy full SHA for aecd13d
lib/msf/ui/console/command_dispatcher/core.rb
@@ -2035,7 +2035,15 @@ def cmd_set_tabs(str, words)
2035
2036
unless str.blank?
2037
res = res.select { |term| term.upcase.start_with?(str.upcase) }
2038
- res = res.map { |term| str + term[str.length..-1] }
+ res = res.map { |term|
2039
+ if str == str.upcase
2040
+ str + term[str.length..-1].upcase
2041
+ elsif str == str.downcase
2042
+ str + term[str.length..-1].downcase
2043
+ else
2044
+ str + term[str.length..-1]
2045
+ end
2046
+ }
2047
end
2048
2049
return res
0 commit comments