Skip to content

Commit

Permalink
Improve normalize_name performance
Browse files Browse the repository at this point in the history
  • Loading branch information
krasnoukhov committed Sep 24, 2014
1 parent 2403a12 commit a320a95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sax-machine/handlers/sax_abstract_handler.rb
Expand Up @@ -167,7 +167,7 @@ def element_values_for(config)
end

def normalize_name(name)
name.gsub(/\-/, "_")
name.to_s.tr("-", "_")
end

def set_attributes_on(object, attributes)
Expand Down

0 comments on commit a320a95

Please sign in to comment.