Sha256: 056a87c108ee2c83bb6fc09acbfc8d9757cc67687ef478768cb1520ca6619aa7
Contents?: true
Size: 330 Bytes
Versions: 29
Compression:
Stored size: 330 Bytes
Contents
require "rails-footnotes/notes/files_note" module Footnotes module Notes class JavascriptsNote < FilesNote def title "Javascripts (#{@files.length})" end protected def scan_text(text) text.scan(/<script[^>]+src\s*=\s*['"]([^>?'"]+\.js)/im).flatten end end end end
Version data entries
29 entries across 29 versions & 2 rubygems