Monday, September 21, 2020

Template modification RegEX not working as expected

I have this TM in thread_view in 2.1 that doesn't work as expected in 2.2. Basically, "insert 1" is added but not "insert 2". The TM test shows that the modification is applied successfully but the actual result is not.

Code:

#(<xf:foreach loop="\$posts" value="\$post">)(.*)(</xf:foreach>)#sU

Code:

Code:
$1
     insert 1
$2
     insert 2
$3

Continue reading...


source https://xfworld.net/threads/template-modification-regex-not-working-as-expected.47865/

No comments:

Post a Comment