From 561064261c5c3b812008d99292378ae46f36e3e0 Mon Sep 17 00:00:00 2001 From: netkas Date: Fri, 27 Dec 2024 15:32:00 -0500 Subject: [PATCH] Version fast-forward --- project.json | 2 +- src/ConfigLib/Configuration.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }