Skip to content

Commit

Permalink
Fix bug in capturing suffixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
digisomni committed Oct 2, 2023
1 parent ab6fae5 commit 12816bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/scene/LODManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class LODManager {
suffix?: string;
} {
const lodPattern =
/^(?<prefix>.*)_(?<lodLevel>LOD[0-4])(?<suffix>\.\d+)?$/u;
/^(?<prefix>.*)_(?<lodLevel>LOD[0-4])(?<suffix>.*)?$/u;
const match = name.match(lodPattern);

return {
Expand Down

0 comments on commit 12816bc

Please sign in to comment.