diff --git a/project.json b/project.json index a7a34fa..70045d4 100644 --- a/project.json +++ b/project.json @@ -24,7 +24,7 @@ "description": "ConfigLib is a library for reading and writing configuration files via the NCC Runtime API", "company": "Nosial", "copyright": "Copyright (c) 2022-2023 Nosial", - "version": "1.1.2", + "version": "1.1.5", "uuid": "9347259e-8e4d-11ed-85a7-fd07cf28ef35" }, "build": { diff --git a/src/ConfigLib/Configuration.php b/src/ConfigLib/Configuration.php index 89a7cd7..0a3a20a 100644 --- a/src/ConfigLib/Configuration.php +++ b/src/ConfigLib/Configuration.php @@ -170,7 +170,7 @@ */ private static function validateKey(string $input): bool { - if (preg_match('/^([a-zA-Z0-9_]+\.?)+$/', $input)) + if (preg_match('/^[a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)*$/', $input)) { return true; }