From c45bf9b5bf4bfb7f66a78a2dd2883e1701f7abd2 Mon Sep 17 00:00:00 2001 From: Joby Elliott Date: Mon, 27 Aug 2018 14:15:28 -0600 Subject: [PATCH] key normalization was needlessly restrictive --- src/FlatArrayTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FlatArrayTrait.php b/src/FlatArrayTrait.php index 6b534c2..923dd10 100644 --- a/src/FlatArrayTrait.php +++ b/src/FlatArrayTrait.php @@ -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"); }