lib/errata/erratum/delete.rb in errata-1.0.1 vs lib/errata/erratum/delete.rb in errata-1.0.2
- old
+ new
@@ -5,10 +5,10 @@
# otherwise abbr(X) will kill the characters before and after the match
@backfill ||= /\Aabbr\((.*)\)\z/.match(options['x']) ? '\1\2' : ''
end
def correct!(row)
- super(row) do
+ if targets? row
row[section].gsub! matching_expression, backfill
end
end
end
end