forked from Qortal/qortal-ui
Fix broken links in q-chat
Replaced by correct regex pattern
This commit is contained in:
parent
8b336da053
commit
78a0c31cf3
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user