# File lib/taps/operation.rb, line 48
  def apply_table_filter(tables)
    return tables unless table_filter || exclude_tables

    re = table_filter ? Regexp.new(table_filter) : nil
    if tables.kind_of?(Hash)
      ntables = {}
      tables.each do |t, d|
        if !exclude_tables.include?(t.to_s) && (!re || !re.match(t.to_s).nil?)
          ntables[t] = d
        end
      end
      ntables
    else
      tables.reject { |t| exclude_tables.include?(t.to_s) || (re && re.match(t.to_s).nil?) }
    end
  end