4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-11 17:55:51 +00:00

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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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