Avoids an esoteric bug in recent versions of the PCRE2 library (#6840)
Avoids an esoteric bug in recent versions of the PCRE2 library (#6840)

In #6836 we've stumbled onto a rather esoteric bug in recent versions of the PCRE2 library itself. Specifically, it appears that in PCRE2 10.34+, lookbehinds do not work for the / character if the lookbehind occurs after a (?(DEFINE)) pattern block that contains at least one subroutine pattern.

Fortunately, we can work around this PCRE bug simply by moving the (?(DEFINE)) block to the end of the regex.

Signed-off-by: Jon Stovell <5fe09b7d9f00fd95250ae2a73993b352b084988d@gmail.com>
StealthWombat/SMF2.1-more-forkery,StealthWombat/SMF2.1-more-forkery