mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-01-12 17:13:36 +00:00
Prevent dot in the first position
This commit is contained in:
parent
1ad7a6fe93
commit
43288be091
@ -48,7 +48,7 @@ object HideAPK {
|
|||||||
var next: Char
|
var next: Char
|
||||||
var prev = 0.toChar()
|
var prev = 0.toChar()
|
||||||
for (i in 0 until len) {
|
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)]
|
ALPHA[random.nextInt(ALPHA.length)]
|
||||||
} else {
|
} else {
|
||||||
ALPHADOTS[random.nextInt(ALPHADOTS.length)]
|
ALPHADOTS[random.nextInt(ALPHADOTS.length)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user