mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 15:05:33 +00:00
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:
parent
b39744c3e7
commit
3a531ddb20
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user