Use frozen_string_literal in all core filters

pull/566/merge
Thibaut Courouble 8 years ago
parent 94470251fe
commit f93ed2649f

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Docs
class AttributionFilter < Filter
def call

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Docs
class CleanHtmlFilter < Filter
def call

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Docs
class CleanLocalUrlsFilter < Filter
def call

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Docs
class CleanTextFilter < Filter
EMPTY_NODES_RGX = /<(?!td|th|iframe|mspace)(\w+)[^>]*>[[:space:]]*<\/\1>/

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Docs
class ContainerFilter < Filter
class ContainerNotFound < StandardError; end

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Docs
class EntriesFilter < Filter
def call

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Docs
class InnerHtmlFilter < Filter
def call

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Docs
class InternalUrlsFilter < Filter
def call

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Docs
class NormalizePathsFilter < Filter
def call

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Docs
class NormalizeUrlsFilter < Filter
ATTRIBUTES = { a: 'href', img: 'src', iframe: 'src' }

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Docs
class TitleFilter < Filter
def call

Loading…
Cancel
Save