Core/Security/Password/HashGenerator.php
public function checkPassword(): bool
    {
        if (!isset($this->regex)) {
            return true;
        }

        return filter_var($this->password, FILTER_VALIDATE_REGEXP, [
            'options' => [
                'regexp' => $this->regex
            ]
        ]);
    }
public function checkPassword(): bool
    {
        if (!isset($this->regex)) {
            return true;
        }

        return filter_var($this->password, FILTER_VALIDATE_REGEXP, [
            'options' => [
                'regexp' => $this->regex
            ]
        ]);
    }
public function checkPassword ( ) : bool { if ( ! isset ( $ this -> regex ) ) { return true ; } return filter_var ( $ this -> password , FILTER_VALIDATE_REGEXP , [ 'options' => [ 'regexp' => $ this -> regex ] ] ) ; }
Checks the password agains the set regex and returns the boolean result of this check

@return bool
Checks the password agains the set regex and returns the boolean result of this check