提交 7e299ce2 编写于 作者: A Akira Matsuda

Reduce Array allocations

上级 acf7642e
......@@ -375,7 +375,7 @@ def const_regexp(camel_cased_word)
last = parts.pop
parts.reverse.inject(last) do |acc, part|
parts.reverse!.inject(last) do |acc, part|
part.empty? ? acc : "#{part}(::#{acc})?"
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册