key normalization was needlessly restrictive
This commit is contained in:
parent
6ebc2e5559
commit
c45bf9b5bf
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue