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) {