1
0
Fork 0
mirror of https://github.com/twbs/bootstrap-sass.git synced 2022-11-09 12:27:02 -05:00

converter: ruby < 2 does not have Range#size

This commit is contained in:
Gleb Mazovetskiy 2013-07-31 21:53:39 +02:00
parent d12c606ba5
commit dd477a87c4

View file

@ -365,7 +365,7 @@ private
positions.each do |p| positions.each do |p|
p = (p.begin + offset .. p.end + offset) p = (p.begin + offset .. p.end + offset)
r = block.call(css, p) r = block.call(css, p)
offset += r.size - p.size offset += r.size - (p.end - p.begin + 1)
css[p] = r css[p] = r
end end
css css