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:
parent
c35b861d2d
commit
1f0aa819da
1 changed files with 1 additions and 1 deletions
|
@ -381,7 +381,7 @@ MESSAGE
|
|||
end
|
||||
|
||||
captured.map do |line|
|
||||
line[min_tabs..-1]
|
||||
line.slice(min_tabs, line.length)
|
||||
end.join
|
||||
end
|
||||
ensure
|
||||
|
|
Loading…
Reference in a new issue