Skip to content

Commit

Permalink
Use tr instead of gsub
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Aug 14, 2015
1 parent be5c9a7 commit cfdcda3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/bash.rake
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module BashCompletion

opts_args = cmd.options.collect do |_, opt|
cases = opt.enum
%[#{option_str(opt).gsub(/ /, '|')})
%[#{option_str(opt).tr(' ', '|')})
completions='#{cases.join(' ')}' ;;] if cases
end.compact

Expand Down

0 comments on commit cfdcda3

Please sign in to comment.