Allow umlauts through the url regex

This commit is contained in:
Bojan Mojsilovic 2023-08-23 12:24:31 +02:00
parent fc7efa1c9b
commit 1af665cbce

View File

@ -61,7 +61,7 @@ export const urlify = (
skipEmbed = false,
skipLinkPreview = false,
) => {
const urlRegex = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,8}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/g;
const urlRegex = /https?:\/\/(www\.)?[-a-zA-Z0-9\u00F0-\u02AF@:%._\+~#=]{1,256}\.[a-zA-Z0-9\u00F0-\u02AF()]{1,8}\b([-a-zA-Z0-9\u00F0-\u02AF()@:%_\+.~#?&//=]*)/g;
return text.replace(urlRegex, (url) => {
if (!skipEmbed) {