Fix chat links sometimes retaining .s at the end

Fuck patcher, istg
[no changelog]
This commit is contained in:
nea
2023-09-09 15:43:15 +02:00
parent e1eac72324
commit c5efb4d1dd

View File

@@ -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,