From b5a3e006f915dbd832db2bdf6e062a3823b85cfe Mon Sep 17 00:00:00 2001 From: Matijs van Zuijlen Date: Sat, 30 Sep 2023 19:14:44 +0200 Subject: [PATCH] Stop requiring text filters to have special names --- lib/text_filter_plugin.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/text_filter_plugin.rb b/lib/text_filter_plugin.rb index 5ce5bb1b..e5633718 100644 --- a/lib/text_filter_plugin.rb +++ b/lib/text_filter_plugin.rb @@ -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