From 46e25231773a3fa9762dc9b47c2f98be40c0f11f Mon Sep 17 00:00:00 2001 From: Daniel Waterworth Date: Thu, 16 Nov 2023 11:37:10 -0600 Subject: [PATCH] DEV: Remove custom field regexes (#24390) As far as I can tell, this isn't used --- app/models/concerns/has_custom_fields.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/models/concerns/has_custom_fields.rb b/app/models/concerns/has_custom_fields.rb index 1b592733528..9faabc758f0 100644 --- a/app/models/concerns/has_custom_fields.rb +++ b/app/models/concerns/has_custom_fields.rb @@ -18,10 +18,6 @@ module HasCustomFields def self.get_custom_field_type(types, key) return unless types - sorted_types = types.keys.select { |k| k.end_with?("*") }.sort_by(&:length).reverse - - sorted_types.each { |t| return types[t] if key =~ /\A#{t}/i } - types[key] end