Merge pull request #9828 from MrPetovan/bug/9733-tag-numbers

Remove strictly numeric tags exception
This commit is contained in:
Tobias Diekershoff 2021-01-21 17:09:51 +01:00 committed by GitHub
commit cf51237e70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View 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;