key normalization was needlessly restrictive

This commit is contained in:
Joby Elliott 2018-08-27 14:15:28 -06:00
parent 6ebc2e5559
commit c45bf9b5bf

View file

@ -204,7 +204,7 @@ trait FlatArrayTrait
}
$norm = [];
foreach ($value as $key => $value) {
$nKey = preg_replace('/[^a-z0-9\-\_]/', '', strtolower($key));
$nKey = preg_replace('/\./', '', strtolower($key));
if ($nKey == '') {
throw new \Exception("Key \"$key\" can't be used inside a FlatArray");
}