mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 15:18:58 +01:00
Make match non-greedy to only match placeholder
This commit is contained in:
parent
d01e0bca04
commit
4d37157497
@ -1121,7 +1121,7 @@ abstract class bo_merge
|
||||
|
||||
// Custom field placeholders look like {{#name}}
|
||||
// Placeholders that need expanded will look like {{#name/placeholder}}
|
||||
preg_match_all('/[${]{2}(([\w]+\/)*)#([\w]+)\/(.*)[$}]{2}/', $content, $matches);
|
||||
preg_match_all('/[${]{2}(([\w]+\/)*)#([\w]+)\/(.*?)[$}]{2}/', $content, $matches);
|
||||
list($placeholders, $prefixes, $pre, $cf, $sub) = $matches;
|
||||
|
||||
foreach($cf as $index => $field)
|
||||
|
Loading…
Reference in New Issue
Block a user