require "#{File.dirname(__FILE__)}/files_note" module Footnotes module Notes class StylesheetsNote < FilesNote def title "Stylesheets (#{@files.length})" end protected def scan_text(text) text.scan(/]+href\s*=\s*['"]([^>?'"]+\.css)/im).flatten end end end end