elFinder\elFinderVolumeDriver::nameAccepted PHP Method

nameAccepted() protected method

Validate file name based on $this->options['acceptedName'] regexp
Author: Dmitry (dio) Levashov
protected nameAccepted ( string $name ) : boolean
$name string file name
return boolean
    protected function nameAccepted($name)
    {
        if ($this->nameValidator) {
            if (function_exists($this->nameValidator)) {
                $f = $this->nameValidator;
                return $f($name);
            }
            return preg_match($this->nameValidator, $name);
        }
        return true;
    }