improved readability

This commit is contained in:
Hauke Klement
2015-02-23 08:45:10 +01:00
parent 02904da7f9
commit 1268cdf7aa
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ class Whistleblower
def generate_hint(stderr)
if hint = find_hint(stderr)
hint.message.gsub(PLACEHOLDER_REGEXP) { @matches[$1.to_i] }
hint.message.gsub(PLACEHOLDER_REGEXP) { @matches[Regexp.last_match(1).to_i] }
end
end