mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-06 00:12:16 +02:00
Update create-test-boilerplate.js
Co-authored-by: Dean <69436131+emdeann@users.noreply.github.com>
This commit is contained in:
parent
b2a20b1075
commit
06b9c9574d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user