Skip to content

Commit

Permalink
chore: Fix RegEx
Browse files Browse the repository at this point in the history
  • Loading branch information
PartMan7 committed Oct 29, 2024
1 parent 60af914 commit bb5ed4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/loaders/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export async function readFileStructure(root: string): Promise<Record<string, st
const label = file
.replace(/\.tsx?$/, '')
.replace('/index', '')
.replace(/[(\w+)]/, ':$1');
.replace(/\[(\w+)]/, ':$1');
acc[`/${label}`] = path.join(root, file);
return acc;
}, {});
Expand Down

0 comments on commit bb5ed4f

Please sign in to comment.