提交 081e15f1 编写于 作者: A Aaron Patterson

join strings rather than resizing buffer

上级 330327ee
......@@ -70,11 +70,11 @@ def number_to_phone(number, options = {})
number.slice!(0, 1) if number.starts_with?('-')
end
str = ""
str = []
str << "+#{country_code}#{delimiter}" unless country_code.blank?
str << number
str << " x #{extension}" unless extension.blank?
ERB::Util.html_escape(str)
ERB::Util.html_escape(str.join)
end
# Formats a +number+ into a currency string (e.g., $13.65). You can customize the format
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册