Skip to content

Commit

Permalink
Use American spelling for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
esotericenderman committed Aug 4, 2024
1 parent a2ac01e commit 59bd59c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ val groupStringSeparator = "."
val kebabcaseStringSeparator = "-"
val snakecaseStringSeparator = "_"

fun capitaliseFirstLetter(string: String): String {
fun capitalizeFirstLetter(string: String): String {
return string.first().uppercase() + string.slice(IntRange(1, string.length - 1))
}

Expand All @@ -29,7 +29,7 @@ fun pascalcase(kebabcaseString: String): String {
val splitString = kebabcaseString.split(kebabcaseStringSeparator)

for (part in splitString) {
pascalCaseString += capitaliseFirstLetter(part)
pascalCaseString += capitalizeFirstLetter(part)
}

return pascalCaseString
Expand Down

0 comments on commit 59bd59c

Please sign in to comment.