mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
优化
This commit is contained in:
parent
314619e014
commit
2ab772387e
@ -84,8 +84,8 @@ object CookieStore : CookieManagerInterface {
|
||||
}
|
||||
val pairArray = cookie.split(semicolonRegex).dropLastWhile { it.isEmpty() }.toTypedArray()
|
||||
for (pair in pairArray) {
|
||||
val pairs = pair.split(equalsRegex).dropLastWhile { it.isEmpty() }.toTypedArray()
|
||||
if (pairs.size == 1) {
|
||||
val pairs = pair.split(equalsRegex, 2).dropLastWhile { it.isEmpty() }.toTypedArray()
|
||||
if (pairs.size <= 1) {
|
||||
continue
|
||||
}
|
||||
val key = pairs[0].trim { it <= ' ' }
|
||||
|
Loading…
Reference in New Issue
Block a user