mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Remove redundant square brackets
Use character class directly instead of character class in character class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
64c914706e
commit
3f8248f1ee
1 changed files with 1 additions and 1 deletions
|
@ -1014,7 +1014,7 @@ class CSV
|
|||
HeaderConverters = {
|
||||
downcase: lambda { |h| h.encode(ConverterEncoding).downcase },
|
||||
symbol: lambda { |h|
|
||||
h.encode(ConverterEncoding).downcase.gsub(/[^[\s\w]]+/, "").strip.
|
||||
h.encode(ConverterEncoding).downcase.gsub(/[^\s\w]+/, "").strip.
|
||||
gsub(/\s+/, "_").to_sym
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue