From 35213630e850e76cfe055a88c5b3cf9dadfab280 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 20 Jan 2021 08:10:20 -0500 Subject: [PATCH] Remove strictly numeric tags exception - It prevented to use year number hashtags for no clear benefit --- src/Content/Text/BBCode.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index 25812db61c..ded3e2fd23 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -2104,11 +2104,6 @@ class BBCode continue; } - // ignore strictly numeric tags like #1 - if ((strpos($match, '#') === 0) && ctype_digit(substr($match, 1))) { - continue; - } - // try not to catch url fragments if (strpos($string, $match) && preg_match('/[a-zA-z0-9\/]/', substr($string, strpos($string, $match) - 1, 1))) { continue;