Skip to content

Commit

Permalink
fix that all values got a leading space due to swapped actions
Browse files Browse the repository at this point in the history
Fixes #151

if multiple lines are used for boolean values, only the latest is used.
  • Loading branch information
Klap-in committed Jan 31, 2024
1 parent a0fde7d commit e06923b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helper/repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ public function parseData($match, $data)
[$key, $value] = preg_split('/\s*:\s*/', $line, 2);
$key = strtolower($key);
$value = $this->convertToType($key, trim($value));
if ($data[$key] === '') {
$data[$key] .= ' ' . $value;
} else {
if (is_bool($data[$key]) || empty($data[$key])) {
$data[$key] = $value;
} else {
$data[$key] .= ' ' . $value;
}
}
// sqlite plugin compability (formerly used for templates)
Expand Down

0 comments on commit e06923b

Please sign in to comment.