aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-09-01 00:50:12 +0200
committernea <nea@nea.moe>2023-09-01 00:50:12 +0200
commitc912ee90d391c3a7c7f3535e7f3fd4a57caa2075 (patch)
tree1b1f5c4c211b8b9e300e63f947dcd939226925a7 /src/main/kotlin/moe
parent41dc53e00e683c62cec8eb08641156077b84639c (diff)
downloadFirmament-c912ee90d391c3a7c7f3535e7f3fd4a57caa2075.tar.gz
Firmament-c912ee90d391c3a7c7f3535e7f3fd4a57caa2075.tar.bz2
Firmament-c912ee90d391c3a7c7f3535e7f3fd4a57caa2075.zip
Remove dot from end of links in chat
Diffstat (limited to 'src/main/kotlin/moe')
-rw-r--r--src/main/kotlin/moe/nea/firmament/features/chat/ChatLinks.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/features/chat/ChatLinks.kt b/src/main/kotlin/moe/nea/firmament/features/chat/ChatLinks.kt
index 7d563fa..1ce5a1b 100644
--- a/src/main/kotlin/moe/nea/firmament/features/chat/ChatLinks.kt
+++ b/src/main/kotlin/moe/nea/firmament/features/chat/ChatLinks.kt
@@ -53,7 +53,7 @@ object ChatLinks : FirmamentFeature {
private fun isUrlAllowed(url: String) = isHostAllowed(url.removePrefix("https://").substringBefore("/"))
override val config get() = TConfig
- val urlRegex = "https://[^. ]+\\.[^ ]+( |$)".toRegex()
+ val urlRegex = "https://[^. ]+\\.[^ ]+(\\.? |$)".toRegex()
data class Image(
val texture: Identifier,