From ee7e6558b261dfae87907151e834b58ef0a72241 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?s=C3=B8renpeter?= Date: Sun, 1 Dec 2024 10:16:57 +0100 Subject: [PATCH] Hashtags now support special characters like accents --- libs/twtxt.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libs/twtxt.php b/libs/twtxt.php index 8955b0c..a94ed36 100644 --- a/libs/twtxt.php +++ b/libs/twtxt.php @@ -124,7 +124,8 @@ function getImagesFromTwt(string $twtString) { function getTagsFromTwt(string $twtString) { //$pattern = '/(?#\1'; // Dummy link $replacement = '#${1}'; $result = preg_replace($pattern, $replacement, $twtString);