From 7ff78a2b7920dd14c2287d78f3ca028d75cd6071 Mon Sep 17 00:00:00 2001 From: Jim Mason Date: Sat, 21 Oct 2023 10:51:16 +0100 Subject: [PATCH] modified hashtag to allow numbers but not as first character --- ui/Search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/Search.php b/ui/Search.php index 387e20f0..cab3ade8 100644 --- a/ui/Search.php +++ b/ui/Search.php @@ -131,7 +131,7 @@ public function searchByAlbumKey($key = null) { // hashtags $hashtags = array_reduce(array_reverse($reviews), function($carry, $review) { - return preg_match_all('/#[\pL_]+/', $review['review'], $matches) ? + return preg_match_all('/#\pL\w*/', $review['review'], $matches) ? array_merge($carry, $matches[0]) : $carry; }, []); $normalized = array_unique(array_map('strtolower', $hashtags));