diff --git a/ruby/command-t/lib/command-t/vim.rb b/ruby/command-t/lib/command-t/vim.rb
index <HASH>..<HASH> 100644
--- a/ruby/command-t/lib/command-t/vim.rb
+++ b/ruby/command-t/lib/command-t/vim.rb
@@ -83,7 +83,7 @@ module CommandT
             '\.' + Regexp.escape($~[1]) + '\z'
           elsif pattern.match(%r{\A\*/([^/]+)/\*\z})
             # */something/* (match directories at any level)
-            '(\A|/)' + Regexp.escape($~[1]) + '/.*(/|\z)'
+            '(\A|/)' + Regexp.escape($~[1]) + '/.+'
           elsif pattern.match(%r{\A\*/(.+)\z})
             # */something (match files or directories at any level)
             '(\A|/)' + Regexp.escape($~[1]) + '(/|\z)'
Simplify converted wildignore regexp

The previous regexp constructed as a result of converting the wildignore
patter `*/something/*` would have an ending that was overly complicated.
We can simplify that by just using `.+`.