Sha256: 389a5d0e192c3152a42b05e6735907e26aaa26ab23a0534299960e8cc9230ef9

Contents?: true

Size: 330 Bytes

Versions: 29

Compression:

Stored size: 330 Bytes

Contents

require "rails-footnotes/notes/files_note"

module Footnotes
  module Notes
    class StylesheetsNote < FilesNote
      def title
        "Stylesheets (#{@files.length})"
      end

      protected
        def scan_text(text)
          text.scan(/<link[^>]+href\s*=\s*['"]([^>?'"]+\.css)/im).flatten
        end
    end
  end
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
rails-footnotes-7.1.0 lib/rails-footnotes/notes/stylesheets_note.rb
rails-footnotes-7.0.1 lib/rails-footnotes/notes/stylesheets_note.rb
rails-footnotes-7.0.0 lib/rails-footnotes/notes/stylesheets_note.rb
rails-footnotes-5.0.0 lib/rails-footnotes/notes/stylesheets_note.rb
rails6-footnotes-5.0.2 lib/rails-footnotes/notes/stylesheets_note.rb
rails6-footnotes-5.0.1 lib/rails-footnotes/notes/stylesheets_note.rb
rails6-footnotes-5.0.0 lib/rails-footnotes/notes/stylesheets_note.rb
rails-footnotes-4.1.8 lib/rails-footnotes/notes/stylesheets_note.rb
rails-footnotes-4.1.7 lib/rails-footnotes/notes/stylesheets_note.rb
rails-footnotes-4.1.6 lib/rails-footnotes/notes/stylesheets_note.rb
rails-footnotes-4.1.5 lib/rails-footnotes/notes/stylesheets_note.rb
rails-footnotes-4.1.4 lib/rails-footnotes/notes/stylesheets_note.rb
rails-footnotes-4.1.3 lib/rails-footnotes/notes/stylesheets_note.rb
rails-footnotes-4.1.2 lib/rails-footnotes/notes/stylesheets_note.rb
rails-footnotes-4.1.1 lib/rails-footnotes/notes/stylesheets_note.rb
rails-footnotes-4.1.0 lib/rails-footnotes/notes/stylesheets_note.rb
rails-footnotes-4.0.2 lib/rails-footnotes/notes/stylesheets_note.rb
rails-footnotes-4.0.1 lib/rails-footnotes/notes/stylesheets_note.rb
rails-footnotes-4.0.0 lib/rails-footnotes/notes/stylesheets_note.rb
rails-footnotes-3.7.9 lib/rails-footnotes/notes/stylesheets_note.rb