Migrate compiler, idea and others to new case conversion api
This commit is contained in:
+1
-1
@@ -42,4 +42,4 @@ private fun CharSequence.trimTrailingWhitespacesAndAddNewlineAtEOF(): String =
|
||||
|
||||
|
||||
private val UPPER_CASE_CHARS = Regex("[A-Z]+")
|
||||
fun String.replaceCamelCaseWithDashedLowerCase() = replace(UPPER_CASE_CHARS) { "-" + it.value.toLowerCase() }
|
||||
fun String.replaceCamelCaseWithDashedLowerCase() = replace(UPPER_CASE_CHARS) { "-" + it.value.lowercase() }
|
||||
|
||||
Reference in New Issue
Block a user