Open
Description
Describe the Bug
It seems the regex used to search the block doesn't work with a template we use, the problem seems to be in relation with the lazy quantifiers, large strings and PHP v7.3 and superior, it works well with PHP v7.2.
Steps to Reproduce
I can't send the template because it's confidential, but :
- When I test lazy quantifiers on simple tests nothing is wrong (PHP v7.3 + v7.4).
- When I test with exact same data minus unuseful tags it works too (PHP v7.3 + v7.4).
- When I test with the full file content there is no match with PHP v7.3+ but a match with v7.2.
Expected Behavior
The blocks have to be cloned...
Current Behavior
...but tags remain visibles.
Context
- PHP Version: 7.3+
- PHPWord Version: 0.17.0