1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

3 commits

Author SHA1 Message Date
Jeremy Evans
b4dfac2c12 Fix ArgumentError in expand_tabs.rb
This fixes the following in my environment:

misc/expand_tabs.rb:29:in `=~': invalid byte sequence in US-ASCII (ArgumentError)

This switches from =~ to start_with? as a regular expression is
not actually needed here.
2019-08-25 12:53:15 -07:00
Takashi Kokubun
1c5a268239
Simplify expand_tabs.rb file selection 2019-08-23 13:57:42 +09:00
Takashi Kokubun
15eaedf805
Add misc/expand_tabs.rb ported from auto-style.rb
This is implemented to close [Misc #16112] because all other options got
at least one objection, and nobody has objected to this solution.

This code is a little complicated for the purpose, but that's just
because it includes some historical code for auto-style.rb:
918a7c31b6/bin/auto-style.rb

Please feel free to improve this file as you like.

[Misc #16112]
2019-08-22 21:24:47 +09:00