make string comparison a bit faster
This commit is contained in:
parent
496811a23f
commit
fc38b39aa3
|
@ -1693,7 +1693,7 @@ module Oga
|
||||||
|
|
||||||
return true if name == STAR
|
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
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
Loading…
Reference in New Issue