lib/reports/Navigator.rb in taskjuggler-0.0.7 vs lib/reports/Navigator.rb in taskjuggler-0.0.8
- old
+ new
@@ -196,10 +196,10 @@
# Remove the URL or directory path from _url1_ that is identical to
# _url2_.
def normalizeURL(url1, url2)
cut = 0
- 0.upto(url1.length - 1) do |i|
+ url1.length.times do |i|
return url1[cut, url1.length - cut] if url1[i] != url2[i]
cut = i + 1 if url1[i] == ?/
end
url1