diff options
author | nea <nea@nea.moe> | 2023-09-01 00:50:12 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-09-01 00:50:12 +0200 |
commit | c912ee90d391c3a7c7f3535e7f3fd4a57caa2075 (patch) | |
tree | 1b1f5c4c211b8b9e300e63f947dcd939226925a7 /src/main/kotlin/moe | |
parent | 41dc53e00e683c62cec8eb08641156077b84639c (diff) | |
download | Firmament-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.kt | 2 |
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, |