Commit 43288be0 authored by vvb2060's avatar vvb2060 Committed by topjohnwu

Prevent dot in the first position

parent 1ad7a6fe
......@@ -48,7 +48,7 @@ object HideAPK {
var next: Char
var prev = 0.toChar()
for (i in 0 until len) {
next = if (prev == '.' || i == len - 1) {
next = if (prev == '.' || prev == 0.toChar() || i == len - 1) {
ALPHA[random.nextInt(ALPHA.length)]
} else {
ALPHADOTS[random.nextInt(ALPHADOTS.length)]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment