Skip to content

Commit

Permalink
fix(AssetsManager): ignore query selector when extracting file extens…
Browse files Browse the repository at this point in the history
…ion (#8036)
  • Loading branch information
theusaf authored Feb 8, 2024
1 parent 53767a1 commit b67b7d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/classes/AssetsManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class AssetsManager {
}

getFileExtension(url: string) {
return extname(url);
return extname(new URL(url).pathname);
}

async allTsFiles() {
Expand Down

0 comments on commit b67b7d4

Please sign in to comment.