From 0ce438709166d7a93abfdf52b7fc8ceb2bb82d02 Mon Sep 17 00:00:00 2001 From: boshan Date: Mon, 25 Jan 2016 15:59:24 -0800 Subject: [PATCH] Cleaner code on regexp --- lib/google/apis/core/api_command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/google/apis/core/api_command.rb b/lib/google/apis/core/api_command.rb index 81f539418..61ac0d853 100644 --- a/lib/google/apis/core/api_command.rb +++ b/lib/google/apis/core/api_command.rb @@ -127,7 +127,7 @@ module Google # Updated header value def normalize_fields_param(fields) # TODO: Generate map of parameter names during code gen. Small possibility that camelization fails - fields.gsub(/:/, '').gsub(/[\w_]+/) { |str| ActiveSupport::Inflector.camelize(str, false) } + fields.gsub(/:/, '').gsub(/\w+/) { |str| ActiveSupport::Inflector.camelize(str, false) } end end end