Skip to content

Commit

Permalink
Fixes #30 replaceAll not replace
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHillcox authored and modmuss50 committed Apr 21, 2023
1 parent db53f01 commit 7788060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/src/lib/template/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export async function generateTemplate(options: Options) {
}

export function nameToModId(name: string) {
return name.toLowerCase().replace(/\s+/g, '-').replace(/[^a-za-z0-9-_]/, "");
return name.toLowerCase().replaceAll(/\s+/g, '-').replaceAll(/[^a-za-z0-9-_]/g, "");
}

async function computeConfig(options: Configuration): Promise<ComputedConfiguration> {
Expand Down

0 comments on commit 7788060

Please sign in to comment.