Skip to content

Commit

Permalink
change build number to 52, fix capitalize word
Browse files Browse the repository at this point in the history
  • Loading branch information
PegasisForever committed Jun 25, 2020
1 parent 83dda19 commit 9636ff6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/site/pegasis/ta/fetch/tools/log.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ enum class LogLevel {

private val logDateFormat = SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS")
val fileDateFormat = SimpleDateFormat("yyyy-MM-dd")
const val serverBuildNumber = 51
const val serverBuildNumber = 52
var isQuiet = false
fun log(level: LogLevel, msg: String, throwable: Throwable? = null, timing: Timing? = null) {
if (isQuiet) {
Expand Down Expand Up @@ -91,4 +91,4 @@ fun logUnhandled(thread: Thread?, throwable: Throwable) {

logText = ANSI_RED + logText + ANSI_RESET
print(logText)
}
}
2 changes: 1 addition & 1 deletion src/site/pegasis/ta/fetch/tools/string.kt
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ operator fun String.times(time: Int): String {
return builder.toString()
}

fun String.capitalizeWord() = split(" ").map { it.capitalize() }.joinToString(" ")
fun String.capitalizeWord() = split(" ").map { it.toLowerCase().capitalize() }.joinToString(" ")

0 comments on commit 9636ff6

Please sign in to comment.