projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
🔀 Merge bugfix/too-long-urls
[Sone.git]
/
src
/
main
/
kotlin
/
net
/
pterodactylus
/
sone
/
text
/
SoneTextParser.kt
diff --git
a/src/main/kotlin/net/pterodactylus/sone/text/SoneTextParser.kt
b/src/main/kotlin/net/pterodactylus/sone/text/SoneTextParser.kt
index
c97a1fc
..
6af0fde
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/text/SoneTextParser.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/text/SoneTextParser.kt
@@
-32,7
+32,7
@@
class SoneTextParser @Inject constructor(private val soneProvider: SoneProvider?
else
LinkType.values()
.mapNotNull { it.findNext(remainder.second) }
- .minBy { it.position }
+ .minBy
OrNull
{ it.position }
.let {
when {
it == null -> PlainTextPart(remainder.second) to ""