workspace: update eslint rule (#1027)

This commit is contained in:
undefined authored and GitHub committed 2025-08-06 18:51:25 +01:00
1 parent 05c3b8f2bd
commit cee3c00ddb
150 files changed
+1069 -1043

No files matched your search

@@ -159,7 +159,7 @@ export async function previewFile(ev?, type = '') {
Notification.info(i18n('Loading file...'));
try {
const { url } = await request.get(link, {}, { headers: { Pragma: 'no-cache' } });
if (/^(doc|xls|ppt)x?$/.test(ext)) return previewOffice(link, url);
if (/^(?:doc|xls|ppt)x?$/.test(ext)) return previewOffice(link, url);
content = await request.get(url, undefined, { dataType: 'text' });
} catch (e) {
Notification.error(i18n('Failed to load file: {0}', e.message));