aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/io
diff options
context:
space:
mode:
authorjani270 <69345714+jani270@users.noreply.github.com>2023-12-31 14:26:12 +0100
committerGitHub <noreply@github.com>2023-12-31 14:26:12 +0100
commit13a1c03698716178822b81b4510e63908ce8e5dd (patch)
treeba4812bb6132183f971e9df22c4e42abdad5ba4b /src/main/kotlin/io
parent2ba842ebd2cdd4768b3745cacfbce50c835ba82f (diff)
downloadNotEnoughUpdates-13a1c03698716178822b81b4510e63908ce8e5dd.tar.gz
NotEnoughUpdates-13a1c03698716178822b81b4510e63908ce8e5dd.tar.bz2
NotEnoughUpdates-13a1c03698716178822b81b4510e63908ce8e5dd.zip
Changed gatherJacobData to a regex and fixed a NFE (#980)
* Fixed cleanSpecialChars not working Co-Authored-By: hannibal2 <24389977+hannibal002@users.noreply.github.com> * Changed logic of gatherjacobdata and fixed #808 Co-Authored-By: hannibal2 <24389977+hannibal002@users.noreply.github.com> * Removed unused import * Moved Pattern outside gatherJacobData * Made the regex more explicit. --------- Co-authored-by: hannibal2 <24389977+hannibal002@users.noreply.github.com>
Diffstat (limited to 'src/main/kotlin/io')
-rw-r--r--src/main/kotlin/io/github/moulberry/notenoughupdates/util/SidebarUtil.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/io/github/moulberry/notenoughupdates/util/SidebarUtil.kt b/src/main/kotlin/io/github/moulberry/notenoughupdates/util/SidebarUtil.kt
index d51c2ea9..47663bca 100644
--- a/src/main/kotlin/io/github/moulberry/notenoughupdates/util/SidebarUtil.kt
+++ b/src/main/kotlin/io/github/moulberry/notenoughupdates/util/SidebarUtil.kt
@@ -29,7 +29,7 @@ object SidebarUtil {
fun readSidebarLines(cleanColor: Boolean = true, cleanSpecialCharacters: Boolean = true): List<String> {
var result = readRawSidebarLines()
if (cleanColor) result = result.map { Utils.cleanColour(it) }
- if (cleanSpecialCharacters) result.map { cleanTeamName(it) }
+ if (cleanSpecialCharacters) result = result.map { cleanTeamName(it) }
return result
}