Merge pull request #9828 from MrPetovan/bug/9733-tag-numbers
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Thu, 21 Jan 2021 16:09:51 +0000 (17:09 +0100)
committerGitHub <noreply@github.com>
Thu, 21 Jan 2021 16:09:51 +0000 (17:09 +0100)
Remove strictly numeric tags exception

src/Content/Text/BBCode.php

index 25812db..ded3e2f 100644 (file)
@@ -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;