From e17397ac956b6cbf46e902f97e9afd95dfc219ad Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 20 Feb 2019 16:29:24 +0300 Subject: [PATCH] Fix rev.53836e656fadbeed210162c478eb227edacc56d9 (16 Mar 2018): Add formats .ott, .ots, .otp --- apps/api/documents/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/documents/api.js b/apps/api/documents/api.js index 8ea0acf3c..3d84e1e3e 100644 --- a/apps/api/documents/api.js +++ b/apps/api/documents/api.js @@ -667,7 +667,7 @@ app = appMap[config.documentType.toLowerCase()]; } else if (!!config.document && typeof config.document.fileType === 'string') { - var type = /^(?:(xls|xlsx|ods|csv|xlst|xlsy|gsheet|xlsm|xlt|xltm|xltx|fods)|(pps|ppsx|ppt|pptx|odp|pptt|ppty|gslides|pot|potm|potx|ppsm|pptm|fodp))$/ + var type = /^(?:(xls|xlsx|ods|csv|xlst|xlsy|gsheet|xlsm|xlt|xltm|xltx|fods|ots)|(pps|ppsx|ppt|pptx|odp|pptt|ppty|gslides|pot|potm|potx|ppsm|pptm|fodp|otp))$/ .exec(config.document.fileType); if (type) { if (typeof type[1] === 'string') app = appMap['spreadsheet']; else