Update version and improve config validation
This commit is contained in:
parent
698e2cb334
commit
2f41614d20
3 changed files with 5 additions and 5 deletions
|
@ -161,9 +161,7 @@
|
|||
*/
|
||||
private static function validateKey(string $input): bool
|
||||
{
|
||||
$pattern = '/^([a-zA-Z0-9]+\.?)+$/';
|
||||
|
||||
if (preg_match($pattern, $input))
|
||||
if (preg_match('/^([a-zA-Z0-9_]+\.?)+$/', $input))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue