class Middleman::SourceWatcher
def valid?(file)
def valid?(file) return false unless @validator.call(file) && !globally_ignored?(file) if @only.empty? !@ignored.call(file) else @only.any? { |reg| file[:relative_path].to_s =~ reg } end end
def valid?(file) return false unless @validator.call(file) && !globally_ignored?(file) if @only.empty? !@ignored.call(file) else @only.any? { |reg| file[:relative_path].to_s =~ reg } end end