check for }

This commit is contained in:
andrey
2001-04-23 13:51:42 +00:00
parent 4a3425b31b
commit 92912502cf

View File

@@ -25,9 +25,9 @@ foreach (array_slice($argv, 1) as $template) {
} }
if (function_exists("preg_replace_callback")) if (function_exists("preg_replace_callback"))
$output = preg_replace_callback('!\$(\w+(\.\w+)?/)*\w+(?>\.\w+)*(?>\|@?\w+(:(?>' . $qstr_regexp . '|[^|\s]+))*)*!s', 'fix_var', $input); $output = preg_replace_callback('!\$(\w+(\.\w+)?/)*\w+(?>\.\w+)*(?>\|@?\w+(:(?>' . $qstr_regexp . '|[^|}\s]+))*)*!s', 'fix_var', $input);
else else
$output = preg_replace('!\$(\w+(\.\w+)?/)*\w+(?>\.\w+)*(?>\|@?\w+(:(?>' . $qstr_regexp . '|[^|\s]+))*)*!mF', 'fix_var', $input); $output = preg_replace('!\$(\w+(\.\w+)?/)*\w+(?>\.\w+)*(?>\|@?\w+(:(?>' . $qstr_regexp . '|[^|}\s]+))*)*!mF', 'fix_var', $input);
fwrite($fp, $output); fwrite($fp, $output);
fclose($fp); fclose($fp);