Fixed regex pattern for configuration properties being considered invalid when they contain an underscore.

This commit is contained in:
netkas 2024-10-29 00:23:02 -04:00
parent e96695a5d8
commit 0d823c88e7
4 changed files with 23 additions and 9 deletions

View file

@ -167,11 +167,10 @@
*/
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;
}
return false;
}