Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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.
  • Loading branch information...
commit 3a531ddb20fd085a0aca4e9eb975473070cc2eeb 1 parent b39744c
Ingo Schommer chillu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tools/UpdateTranslationsTask.php
2  tools/UpdateTranslationsTask.php
View
@@ -170,7 +170,7 @@ protected function processYmlFile($file) {
$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) {
Please sign in to comment.
Something went wrong with that request. Please try again.