module Footnotes module Notes class JavascriptsNote < FilesNote def title "Javascripts (#{@files.length})" end protected def scan_text(text) text.scan(/]+src\s*=\s*['"]([^>?'"]+\.js)/im).flatten end end end end