Commits

Chad Perrin committed 1f67726

fixed some indentation

  • Participants
  • Parent commits fea9d6f

Comments (0)

Files changed (1)

File lib/cmp_text.rb

     total = 0
     if p1.size
       p1.each_index do |b|
-	score += 1 if p2.index(p1[b])
-	total += 1
-	(b+1).upto(p1.size-1) do |e|
-	  score += 1 if has_segment(p2, p1[b..e])
-	  total += 1
-	end
+        score += 1 if p2.index(p1[b])
+        total += 1
+        (b+1).upto(p1.size-1) do |e|
+          score += 1 if has_segment(p2, p1[b..e])
+          total += 1
+        end
       end
       (score * 100) / total
     else