From 6fe7512f38d158415cd2e318f72b8f03aaa74f17 Mon Sep 17 00:00:00 2001 From: SlahserZ Date: Mon, 11 Jul 2022 14:35:16 +0800 Subject: [PATCH] fix: let s3-url be compatible --- modules/core/src/loaders/xviz-file-loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/loaders/xviz-file-loader.js b/modules/core/src/loaders/xviz-file-loader.js index 1b9bcbb3..dd5bb5a2 100644 --- a/modules/core/src/loaders/xviz-file-loader.js +++ b/modules/core/src/loaders/xviz-file-loader.js @@ -103,7 +103,7 @@ export default class XVIZFileLoader extends XVIZLoaderInterface { } _loadFile(filePath, options) { - const fileFormat = filePath.toLowerCase().match(/[^\.]*$/)[0]; + const fileFormat = filePath.toLowerCase().split('?')[0].match(/[^\.]*$/)[0]; let file; switch (fileFormat) {