Skip to content

Commit

Permalink
Merge pull request #147 from xeokit/fix-extensions
Browse files Browse the repository at this point in the history
Fix file extension detection
  • Loading branch information
xeolabs authored Apr 18, 2024
2 parents 35a5cd7 + d11c7ad commit a96167f
Show file tree
Hide file tree
Showing 10 changed files with 7,363 additions and 7,363 deletions.
2 changes: 1 addition & 1 deletion convert2xkt.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function log(msg) {
}

function getFileExtension(fileName) {
let ext = path.extname(source);
let ext = path.extname(fileName);
if (ext.charAt(0) === ".") {
ext = ext.substring(1);
}
Expand Down
4 changes: 2 additions & 2 deletions dist/convert2xkt.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -26768,7 +26768,7 @@ function convert2xkt({
stats.aabb = null;

function getFileExtension(fileName) {
let ext = path.extname(source);
let ext = path.extname(fileName);
if (ext.charAt(0) === ".") {
ext = ext.substring(1);
}
Expand Down Expand Up @@ -26803,7 +26803,7 @@ function convert2xkt({
const startTime = new Date();

const sourceConfigs = configs.sourceConfigs || {};
const ext = sourceFormat || getFileExtension();
const ext = sourceFormat || getFileExtension(source);

log(`Input file extension: "${ext}"`);

Expand Down
2 changes: 1 addition & 1 deletion dist/xeokit-convert.cjs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/xeokit-convert.cjs.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit a96167f

Please sign in to comment.