Remove unnecessary regex in room topic component

This makes Markdown links work again
This commit is contained in:
Joshua Goins
2024-02-29 14:42:38 -05:00
committed by Tobias Fella
parent bdf192df58
commit 1f4a271dd6

View File

@@ -83,8 +83,7 @@ ColumnLayout {
visible: text.length > 0
text: root.room && root.room.topic ? root.room.topic.replace(replaceLinks, "<a href=\"$1\">$1</a>") : ""
readonly property var replaceLinks: /(http[s]?:\/\/[^ \r\n]*)/g
text: root.room && root.room.topic ? root.room.topic : ""
textFormat: TextEdit.MarkdownText
wrapMode: Text.Wrap
onLinkActivated: link => UrlHelper.openUrl(link)