Fixed regex pattern for configuration properties being considered invalid when they contain an underscore.
This commit is contained in:
parent
e96695a5d8
commit
0d823c88e7
4 changed files with 23 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue