Fix large previews for csv files [SCI-6619] (#3961)

This commit is contained in:
Alex Kriuchykhin 2022-03-28 16:32:18 +02:00 committed by GitHub
parent 78a8b5d952
commit ea5ee65618
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@
module FileIconsHelper
def wopi_file?(asset)
file_ext = asset.file_name.split('.').last&.downcase
%w(csv ods xls xlsb xlsm xlsx odp pot potm potx pps ppsm
%w(ods xls xlsb xlsm xlsx odp pot potm potx pps ppsm
ppsx ppt pptm pptx doc docm docx dot dotm dotx odt rtf).include?(file_ext)
end