Introduce compat source sets and move all kotlin sources to the main directory [no changelog]
11 lines
221 B
Kotlin
11 lines
221 B
Kotlin
|
|
package moe.nea.firmament.util
|
|
|
|
object Base64Util {
|
|
fun String.padToValidBase64(): String {
|
|
val align = this.length % 4
|
|
if (align == 0) return this
|
|
return this + "=".repeat(4 - align)
|
|
}
|
|
}
|