make string comparison a bit faster

This commit is contained in:
Dan Fockler 2015-08-15 06:34:09 -07:00
parent 496811a23f
commit fc38b39aa3
1 changed files with 1 additions and 1 deletions

View File

@ -1693,7 +1693,7 @@ module Oga
return true if name == STAR
xml_node.name == name || xml_node.name.downcase == name.downcase
xml_node.name == name || xml_node.name.casecmp(name).zero?
end
##