Skip to content

Commit

Permalink
1.2.34: unused this removed
Browse files Browse the repository at this point in the history
  • Loading branch information
steklopod committed Jun 13, 2020
1 parent 8b15cde commit fe47e1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/online/colaba/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ val isWindows: Boolean = System.getProperty("os.name").toLowerCase().contains("w
val windowsPrefix: List<String> = if (isWindows) listOf("cmd", "/c") else listOf()


fun String.normalizeForWindows(): String = this.replace("\\", "/")
fun String.splitBySpace(): List<String> = this.replace(" ", " ").split(" ")
fun String.normalizeForWindows(): String = replace("\\", "/")
fun String.splitBySpace(): List<String> = replace(" ", " ").split(" ")

fun Exception.shortStackTrace(searchKeyWord: String = "org.gradle") = apply {
stackTrace = stackTrace.filter { it.className.contains(searchKeyWord) }.toTypedArray()
Expand Down

0 comments on commit fe47e1f

Please sign in to comment.