BUG UpdateTranslationsTask YML regex (fixes #7707)

Wasn't detecting composite keys (separated by dots)
properly in temporary YML conversion, so messed up the
YML structure, effectively "hiding" and rearranging
translations values within the wrong keys.
This commit is contained in:
Ingo Schommer 2012-08-06 10:37:05 +02:00
parent b39744c3e7
commit 3a531ddb20

View File

@ -170,7 +170,7 @@ class UpdateTranslationsTask extends SilverStripeBuildTask {
$isBlock = false;
$blockIndex = -1;
$lines = explode(PHP_EOL, $content);
$keyedLineRegex = '/^\s*[\w\d-_]*:\s*/';
$keyedLineRegex = '/^\s*[\w\d-_\.]*:\s*/';
$leadingQuoteRegex = '/^\s*\"/';
$trailingQuoteRegex = '/[^\\\\]\"$/';
foreach($lines as $i => $line) {