DEV: Remove custom field regexes (#24390)

As far as I can tell, this isn't used
This commit is contained in:
Daniel Waterworth 2023-11-16 11:37:10 -06:00 committed by GitHub
parent bcfb1a423d
commit 46e2523177
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -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