Prevent dot in the first position again

This commit is contained in:
vvb2060 2021-02-22 00:20:59 +08:00 committed by John Wu
parent 0a6140c6eb
commit 4950020635

View File

@ -62,8 +62,8 @@ object HideAPK {
} }
if (!builder.contains('.')) { if (!builder.contains('.')) {
// Pick a random index and set it as dot // Pick a random index and set it as dot
val idx = random.nextInt(len - 1) val idx = random.nextInt(len - 2)
builder[idx] = '.' builder[idx + 1] = '.'
} }
return builder.toString() return builder.toString()
} }