summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-21 01:01:10 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-21 01:01:10 +0000
commit3f8248f1ee3099d8d4d61c3647bbc25aaf6607a6 (patch)
tree8f59e1c47d2057095cfa62915b982fc32c1acf48 /lib
parent64c914706ebeeda42892c6e0a4082cff75e76a1f (diff)
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
Diffstat (limited to 'lib')
-rw-r--r--lib/csv.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/csv.rb b/lib/csv.rb
index 9a861c7327..c93c8f9ec3 100644
--- a/lib/csv.rb
+++ b/lib/csv.rb
@@ -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
}
}