WIP: Change IPv4 to Ipv4 before interpetting it as camel case. (#669)
This commit is contained in:
parent
f1260a814a
commit
5e38f38e10
|
@ -37,7 +37,9 @@ module Google
|
|||
# @param [String] name
|
||||
# @return [String] updated param name
|
||||
def normalize_param_name(name)
|
||||
name = ActiveSupport::Inflector.underscore(name.gsub(/\W/, '_'))
|
||||
name = name.gsub(/\W/, '_')
|
||||
name = name.gsub(/IPv4/, 'Ipv4')
|
||||
name = ActiveSupport::Inflector.underscore(name)
|
||||
if reserved?(name)
|
||||
logger.warn { sprintf('Found reserved keyword \'%1$s\'', name) }
|
||||
name += '_'
|
||||
|
|
Loading…
Reference in New Issue