We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
If you have a document where some variables are splited in the XML in parts, the regex doesn't work. I have done these changes to the code:
changed
preg_match_all('/\$\{(.*?)}/i', $documentPartXML, $matches);
to
preg_match_all('/\$\{(.*?)}/i', strip_tags($documentPartXML), $matches);
That makes the search faster and gives the warranty to find the variables
Changed to pattern and exit if no match
$pattern = '/\$((.|\n)*?)\{((.|\n)*?)\}/m'; preg_match_all($pattern, $documentPartXML, $matches); if (empty($matches[0])) { return $documentPartXML; }
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
If you have a document where some variables are splited in the XML in parts, the regex doesn't work. I have done these changes to the code:
changed
to
That makes the search faster and gives the warranty to find the variables
Changed to pattern and exit if no match
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: