lib/redis_scanner/rule.rb in redis_scanner-0.1.5 vs lib/redis_scanner/rule.rb in redis_scanner-0.1.6

- old
+ new

@@ -16,13 +16,12 @@ end def extract_pattern(key) key = force_valid_key(key) @rules.each do |rule, replacer| - if m = rule.match(key) + while (m = rule.match(key)) key = key.sub(m[1], replacer) - break end end key end @@ -39,6 +38,6 @@ end key end end end -end \ No newline at end of file +end