mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-09-29 00:10:50 +00:00
Allow umlauts through the url regex
This commit is contained in:
parent
fc7efa1c9b
commit
1af665cbce
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user