Cleaner code on regexp

This commit is contained in:
boshan committed 2016-01-25 15:59:24 -08:00
1 parent ec574364a3
commit 0ce4387091
1 file changed
+1 -1
+1 -1
View File
@@ -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