Skip to content

Commit

Permalink
Stop requiring text filters to have special names
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Sep 30, 2023
1 parent debce31 commit b5a3e00
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/text_filter_plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ class << self
def self.inherited(sub)
super

if sub.to_s.start_with?("Plugin", "PublifyCore::TextFilter")
name = sub.short_name
@@filter_map[name] = sub
end
name = sub.short_name
@@filter_map[name] = sub
end

def self.filter_map
Expand Down

0 comments on commit b5a3e00

Please sign in to comment.