[Vulcan/Web] Fix extracting school symbol.

This commit is contained in:
Kuba Szczodrzyński 2021-02-26 20:37:21 +01:00
parent 01c41645ab
commit 6a33088352

View File

@ -168,7 +168,7 @@ open class VulcanWebMain(open val data: DataVulcan, open val lastSync: Long?) {
var count = 0
while (clientIndex != -1 && count < 100) {
val startIndex = clientIndex + clientUrl.length
val endIndex = text.indexOf('"', startIndex = startIndex)
val endIndex = text.indexOfAny(charArrayOf('"', '/'), startIndex = startIndex)
val schoolSymbol = text.substring(startIndex, endIndex)
schoolSymbols += schoolSymbol
clientIndex = text.indexOf(clientUrl, startIndex = endIndex)