mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-06 08:22:16 +02:00
Update create-test-boilerplate.js
Co-authored-by: Dean <69436131+emdeann@users.noreply.github.com>
This commit is contained in:
parent
0e982c914a
commit
b2a20b1075
@ -74,7 +74,7 @@ async function runInteractive() {
|
||||
// Convert fileName to kebab-case
|
||||
// Ex: "Cud Chew/Cud-Chew" --> "cud-chew"
|
||||
const fileName = fileNameAnswer.userInput
|
||||
.replace(/([a-z])([A-Z])/g, "$1_$2") // Convert camelCase to snake_case
|
||||
.replace(/([a-z])([A-Z])/g, "$1-$2") // Convert camelCase to kebab-case
|
||||
.replace(/\s+/g, "-") // Replace spaces with underscores
|
||||
.toLowerCase(); // Ensure all lowercase
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user