From 9207ca420f884034692fbad968ca5e729d0c6cd8 Mon Sep 17 00:00:00 2001 From: uu59 Date: Wed, 8 Apr 2015 17:04:18 +0900 Subject: [PATCH] Proper short variable name --- lib/regexp_preview.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/regexp_preview.rb b/lib/regexp_preview.rb index 5ef4916..d754af0 100644 --- a/lib/regexp_preview.rb +++ b/lib/regexp_preview.rb @@ -76,8 +76,8 @@ class RegexpPreview def multiline_detect(lines, regexps) whole = "" matches = [] - lines.each_with_index do |line, j| - m = line.match(multiline_regexps[j]) + lines.each_with_index do |line, i| + m = line.match(multiline_regexps[i]) unless m return nil end