Skip to content

Commit

Permalink
Update pascalcase function
Browse files Browse the repository at this point in the history
  • Loading branch information
esotericenderman committed Sep 10, 2024
1 parent 9dc96b4 commit 3dd9c6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ fun snakecase(kebabcaseString: String): String {
return kebabcaseString.lowercase().replace(kebabcaseStringSeparator, snakecaseStringSeparator)
}

fun pascalcase(kebabcaseString: String): String {
fun pascalcase(string: String): String {
var pascalCaseString = ""

val splitString = kebabcaseString.split(kebabcaseStringSeparator)
val splitString = string.split(Regex("$kebabcaseStringSeparator| "))

for (part in splitString) {
pascalCaseString += capitalizeFirstLetter(part)
Expand All @@ -62,10 +62,10 @@ fun replaceInFile(filePath: String, stringToReplace: String, replacementString:

description = "Test plugin for paperweight-userdev"

val mainProjectAuthor = "Esoteric Slime"
val mainProjectAuthor = "Esoteric Development"
val projectAuthors = listOfNotNull(mainProjectAuthor)

val topLevelDomain = "net"
val topLevelDomain = "dev"

val projectNameString = rootProject.name

Expand Down

0 comments on commit 3dd9c6a

Please sign in to comment.