Remove dot from end of links in chat
This commit is contained in:
@@ -53,7 +53,7 @@ object ChatLinks : FirmamentFeature {
|
|||||||
private fun isUrlAllowed(url: String) = isHostAllowed(url.removePrefix("https://").substringBefore("/"))
|
private fun isUrlAllowed(url: String) = isHostAllowed(url.removePrefix("https://").substringBefore("/"))
|
||||||
|
|
||||||
override val config get() = TConfig
|
override val config get() = TConfig
|
||||||
val urlRegex = "https://[^. ]+\\.[^ ]+( |$)".toRegex()
|
val urlRegex = "https://[^. ]+\\.[^ ]+(\\.? |$)".toRegex()
|
||||||
|
|
||||||
data class Image(
|
data class Image(
|
||||||
val texture: Identifier,
|
val texture: Identifier,
|
||||||
|
|||||||
Reference in New Issue
Block a user