From 9aaa5d5989253b97af0b2817b045f6649db258ea Mon Sep 17 00:00:00 2001 From: ghost Date: Mon, 25 Sep 2023 00:32:41 +0300 Subject: [PATCH] update config dependencies to json --- src/app/model/validator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/model/validator.php b/src/app/model/validator.php index fdf63b9..2e35ada 100644 --- a/src/app/model/validator.php +++ b/src/app/model/validator.php @@ -346,14 +346,14 @@ class AppModelValidator return false; } - if (!preg_match(YGGDRASIL_HOST_REGEX, str_replace(['[',']'], false, $value))) + if (!preg_match($this->_config->host->regex, str_replace(['[',']'], false, $value))) { array_push( $error, sprintf( _('Host "%s" not match condition "%s"'), $value, - YGGDRASIL_HOST_REGEX + $this->_config->host->regex ) );