Fix broken links in q-chat

Replaced by correct regex pattern
This commit is contained in:
AlphaX-Projects
2024-05-20 19:22:26 +02:00
committed by GitHub
parent 8b336da053
commit 78a0c31cf3

View File

@@ -87,7 +87,7 @@ const extractComponents = async (url) => {
}
function processText(input) {
const linkRegex = /(qortal:\/\/S+)/g
const linkRegex = /(qortal:\/\/\s+$|\S+.+)/gm
function processNode(node) {
if (node.nodeType === Node.TEXT_NODE) {
const parts = node.textContent.split(linkRegex)