1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

optimize capture_haml line to create fewer objects

This commit is contained in:
Tieg Zaharia 2013-03-29 10:00:23 -04:00 committed by Norman Clarke
parent c35b861d2d
commit 1f0aa819da

View file

@ -381,7 +381,7 @@ MESSAGE
end
captured.map do |line|
line[min_tabs..-1]
line.slice(min_tabs, line.length)
end.join
end
ensure