Update create-test-boilerplate.js

Co-authored-by: Dean <69436131+emdeann@users.noreply.github.com>
This commit is contained in:
Bertie690 2025-04-26 23:36:38 -04:00 committed by GitHub
parent b2a20b1075
commit 06b9c9574d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,7 +75,7 @@ async function runInteractive() {
// Ex: "Cud Chew/Cud-Chew" --> "cud-chew"
const fileName = fileNameAnswer.userInput
.replace(/([a-z])([A-Z])/g, "$1-$2") // Convert camelCase to kebab-case
.replace(/\s+/g, "-") // Replace spaces with underscores
.replace(/\s+/g, "-") // Replace spaces with dashes
.toLowerCase(); // Ensure all lowercase
// Get proper english name for test names and data name for abilities/moves