DEV: Remove custom field regexes (#24390)
As far as I can tell, this isn't used
This commit is contained in:
parent
bcfb1a423d
commit
46e2523177
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue